#F0D521

A color in the Yellow, Gold family

#f0d521 is a color in the Yellow, Gold family: RGB(240, 213, 33), HSL(52°, 87%, 54%), CMYK(0%, 11%, 86%, 6%). Closest named color: gold. Contrast is 1.47:1 on white and 14.24:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#f0d521
RGBrgb(240 213 33)
RGB (legacy)rgb(240, 213, 33)
RGB %rgb(94% 84% 13%)
HSLhsl(52 87% 54%)
HSV / HSBhsv(52, 86%, 94%)
HWBhwb(52 13% 6%)
CMYKcmyk(0%, 11%, 86%, 6%)
CIELAB (D50)lab(85.59 -2.13 80.46)
LCHlch(85.59 80.49 91.51)
OKLaboklab(0.8693 -0.0291 0.1723)
OKLCHoklch(0.8693 0.1747 99.6)
Decimal15783201

Properties

Color ToneYellow, Gold
Closest named colorgold ΔE 2.3
Closest web-safe color#ffcc33
Hue52°
Saturation (HSL / HSV)87% / 86%
Lightness (HSL)54%
Brightness or Value (HSV)94%
Luminance (Rec.601 / Rec.709)79% / 81%
Relative luminance (WCAG)0.6622
Red / Green / Blue240 / 213 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.47:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
14.24: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 22.2 / -81.1 · As background with white / black text: Lc -25.3 / 81.5

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