#D2E821

A color in the Yellow, Gold family

#d2e821 is a color in the Yellow, Gold family: RGB(210, 232, 33), HSL(67°, 81%, 52%), CMYK(9%, 0%, 86%, 9%). Closest named color: greenyellow. Contrast is 1.37:1 on white and 15.3:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#d2e821
RGBrgb(210 232 33)
RGB (legacy)rgb(210, 232, 33)
RGB %rgb(82% 91% 13%)
HSLhsl(67 81% 52%)
HSV / HSBhsv(67, 86%, 91%)
HWBhwb(67 13% 9%)
CMYKcmyk(9%, 0%, 86%, 9%)
CIELAB (D50)lab(88.1 -23.29 81.12)
LCHlch(88.1 84.4 106.02)
OKLaboklab(0.8845 -0.0882 0.1762)
OKLCHoklch(0.8845 0.1971 116.6)
Decimal13821985

Properties

Color ToneYellow, Gold
Closest named colorgreenyellow ΔE 6.8
Closest web-safe color#ccff33
Hue67°
Saturation (HSL / HSV)81% / 86%
Lightness (HSL)52%
Brightness or Value (HSV)91%
Luminance (Rec.601 / Rec.709)80% / 84%
Relative luminance (WCAG)0.7152
Red / Green / Blue210 / 232 / 33

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.37:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
15.30: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 / -85.6 · As background with white / black text: Lc -20.6 / 85.7

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: #d2e821;
  --color-brand-oklch: oklch(88.45% 0.1971 116.6);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(210 232 33 / 50%); }
/* Tailwind CSS */
<div class="bg-[#d2e821] text-[#d2e821] border-[#d2e821]">