#F0DD21

A color in the Yellow, Gold family

#f0dd21 is a color in the Yellow, Gold family: RGB(240, 221, 33), HSL(54°, 87%, 54%), CMYK(0%, 8%, 86%, 6%). Closest named color: gold. Contrast is 1.39:1 on white and 15.07:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#f0dd21
RGBrgb(240 221 33)
RGB (legacy)rgb(240, 221, 33)
RGB %rgb(94% 87% 13%)
HSLhsl(54 87% 54%)
HSV / HSBhsv(54, 86%, 94%)
HWBhwb(54 13% 6%)
CMYKcmyk(0%, 8%, 86%, 6%)
CIELAB (D50)lab(87.64 -5.93 82.01)
LCHlch(87.64 82.22 94.14)
OKLaboklab(0.8857 -0.0403 0.1759)
OKLCHoklch(0.8857 0.1805 102.91)
Decimal15785249

Properties

Color ToneYellow, Gold
Closest named colorgold ΔE 2.4
Closest web-safe color#ffcc33
Hue54°
Saturation (HSL / HSV)87% / 86%
Lightness (HSL)54%
Brightness or Value (HSV)94%
Luminance (Rec.601 / Rec.709)80% / 83%
Relative luminance (WCAG)0.7035
Red / Green / Blue240 / 221 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.39:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
15.07: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 18.9 / -84.6 · As background with white / black text: Lc -21.6 / 84.8

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: #f0dd21;
  --color-brand-oklch: oklch(88.57% 0.1805 102.91);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(240 221 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f0dd21] text-[#f0dd21] border-[#f0dd21]">