#D9D252#D9D252

#D9D252 is a very light, vivid yellow. Relative luminance 0.615; OKLCH L 84.6% C 0.147 H 106.2°. Best body text is #000000 at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#D9D252
RGBrgb(217, 210, 82)
HSLhsl(57, 64%, 59%)
HSVhsv(57, 62%, 85%)
CMYKcmyk(0%, 3.2%, 62.2%, 14.9%)
CIE-LABlab(82.62, -13.07, 62.26)
CIE-LCHlch(82.62, 63.62, 101.86°)
OKLaboklab(84.57% -0.0411 0.1417)
OKLCHoklch(84.57% 0.147 106.2)
XYZxyz(53.1867, 61.4559, 17.0415)
Luminance0.6145 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D252 #5259D9
analogous
#D98E52 #D9D252 #9CD952
triadic
#D9D252 #52D9D2 #D252D9
tetradic
#D9D252 #52D98E #5259D9 #D9529C
square
#D9D252 #52D98E #5259D9 #D9529C
split-complementary
#D9D252 #529CD9 #8E52D9
monochromatic
#918B20 #C3BB2B #D9D252 #E4DF84 #EFECB6

Accessibility & contrast

On white

1.58
#D9D252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.29
#D9D252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D252
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D252#FFFFFF#000000##000000
##D9D2521.001.5813.2913.29
#FFFFFF1.581.0021.0021.00
#00000013.2921.001.001.00
##00000013.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CB42
Deuteranopia (green-blind)
#E6D05A
Tritanopia (blue-blind)
#E8C5B7
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d9d252;
/* rgb */ color: rgb(217, 210, 82);
/* oklch */ color: oklch(84.6% 0.147 106.2);
Tailwind
colors: {
  custom: {
    50: '#e8df88',
    500: '#d9d252',
    950: '#000000',
  },
}
SCSS
$custom: #d9d252;
$custom-light: #e8df88;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d252",
  "rgb": {
    "r": 217,
    "g": 210,
    "b": 82
  },
  "hsl": {
    "h": 56.889,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.8457,
    "c": 0.14748,
    "h": 106.2
  },
  "luminance": 0.61454
}

Semantic roles & 50–950 ramp

primary
#D9D252
secondary
#393E96
accent
#49E741
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D9D252

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D9D252 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva