#D5C821

A color in the Yellow, Gold family

#d5c821 is a color in the Yellow, Gold family: RGB(213, 200, 33), HSL(56°, 73%, 48%), CMYK(0%, 6%, 85%, 16%). Closest named color: gold. Contrast is 1.73:1 on white and 12.11:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#d5c821
RGBrgb(213 200 33)
RGB (legacy)rgb(213, 200, 33)
RGB %rgb(84% 78% 13%)
HSLhsl(56 73% 48%)
HSV / HSBhsv(56, 85%, 84%)
HWBhwb(56 13% 16%)
CMYKcmyk(0%, 6%, 85%, 16%)
CIELAB (D50)lab(79.79 -7.26 74.75)
LCHlch(79.79 75.1 95.55)
OKLaboklab(0.8181 -0.0419 0.1612)
OKLCHoklch(0.8181 0.1666 104.56)
Decimal14010401

Properties

Color ToneYellow, Gold
Closest named colorgold ΔE 7.6
Closest web-safe color#cccc33
Hue56°
Saturation (HSL / HSV)73% / 85%
Lightness (HSL)48%
Brightness or Value (HSV)84%
Luminance (Rec.601 / Rec.709)72% / 75%
Relative luminance (WCAG)0.5556
Red / Green / Blue213 / 200 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.73:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
12.11: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 31.3 / -71.5 · As background with white / black text: Lc -35.1 / 72.6

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