#F5DC21

A color in the Yellow, Gold family

#f5dc21 is a color in the Yellow, Gold family: RGB(245, 220, 33), HSL(53°, 91%, 55%), CMYK(0%, 10%, 87%, 4%). Closest named color: gold. Contrast is 1.39:1 on white and 15.14:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#f5dc21
RGBrgb(245 220 33)
RGB (legacy)rgb(245, 220, 33)
RGB %rgb(96% 86% 13%)
HSLhsl(53 91% 55%)
HSV / HSBhsv(53, 87%, 96%)
HWBhwb(53 13% 4%)
CMYKcmyk(0%, 10%, 87%, 4%)
CIELAB (D50)lab(87.83 -3.38 82.39)
LCHlch(87.83 82.46 92.35)
OKLaboklab(0.8881 -0.0332 0.1764)
OKLCHoklch(0.8881 0.1795 100.67)
Decimal16112673

Properties

Color ToneYellow, Gold
Closest named colorgold ΔE 1.7
Closest web-safe color#ffcc33
Hue53°
Saturation (HSL / HSV)91% / 87%
Lightness (HSL)55%
Brightness or Value (HSV)96%
Luminance (Rec.601 / Rec.709)81% / 83%
Relative luminance (WCAG)0.7071
Red / Green / Blue245 / 220 / 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.14: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.6 / -84.9 · As background with white / black text: Lc -21.3 / 85.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: #f5dc21;
  --color-brand-oklch: oklch(88.81% 0.1795 100.67);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(245 220 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f5dc21] text-[#f5dc21] border-[#f5dc21]">