#F0EC00

A color in the Yellow, Gold family

#f0ec00 is a color in the Yellow, Gold family: RGB(240, 236, 0), HSL(59°, 100%, 47%), CMYK(0%, 2%, 100%, 6%). Closest named color: yellow. Contrast is 1.26:1 on white and 16.7:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#f0ec00
RGBrgb(240 236 0)
RGB (legacy)rgb(240, 236, 0)
RGB %rgb(94% 93% 0%)
HSLhsl(59 100% 47%)
HSV / HSBhsv(59, 100%, 94%)
HWBhwb(59 0% 6%)
CMYKcmyk(0%, 2%, 100%, 6%)
CIELAB (D50)lab(91.47 -13.21 88.49)
LCHlch(91.47 89.47 98.49)
OKLaboklab(0.9162 -0.0629 0.1879)
OKLCHoklch(0.9162 0.1981 108.5)
Decimal15789056

Properties

Color ToneYellow, Gold
Closest named coloryellow ΔE 5.4
Closest web-safe color#ffff00
Hue59°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)47%
Brightness or Value (HSV)94%
Luminance (Rec.601 / Rec.709)82% / 86%
Relative luminance (WCAG)0.7852
Red / Green / Blue240 / 236 / 0

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.26:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
16.70:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 12.5 / -91.4 · As background with white / black text: Lc -14.5 / 91.1

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #f0ec00;
  --color-brand-oklch: oklch(91.62% 0.1981 108.5);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(240 236 0 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f0ec00] text-[#f0ec00] border-[#f0ec00]">