#D9D257#D9D257

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

Color values

HEX#D9D257
RGBrgb(217, 210, 87)
HSLhsl(57, 63%, 60%)
HSVhsv(57, 60%, 85%)
CMYKcmyk(0%, 3.2%, 59.9%, 14.9%)
CIE-LABlab(82.67, -12.75, 60.18)
CIE-LCHlch(82.67, 61.52, 101.96°)
OKLaboklab(84.62% -0.0396 0.1379)
OKLCHoklch(84.62% 0.144 106)
XYZxyz(53.3839, 61.5348, 18.0803)
Luminance0.6153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9D257 #575ED9
analogous
#D99157 #D9D257 #9FD957
triadic
#D9D257 #57D9D2 #D257D9
tetradic
#D9D257 #57D991 #575ED9 #D9579F
square
#D9D257 #57D991 #575ED9 #D9579F
split-complementary
#D9D257 #579FD9 #9157D9
monochromatic
#948E21 #C6BE2D #D9D257 #E4DF89 #F0EDBB

Accessibility & contrast

On white

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

On black

13.31
#D9D257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9D257
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9D257#FFFFFF#000000##000000
##D9D2571.001.5813.3113.31
#FFFFFF1.581.0021.0021.00
#00000013.3121.001.001.00
##00000013.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CB49
Deuteranopia (green-blind)
#E6D05E
Tritanopia (blue-blind)
#E8C5B8
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d9d257;
/* rgb */ color: rgb(217, 210, 87);
/* oklch */ color: oklch(84.6% 0.144 106.0);
Tailwind
colors: {
  custom: {
    50: '#e8df8b',
    500: '#d9d257',
    950: '#000000',
  },
}
SCSS
$custom: #d9d257;
$custom-light: #e8df8b;
$custom-dark: #000000;
JSON
{
  "hex": "#d9d257",
  "rgb": {
    "r": 217,
    "g": 210,
    "b": 87
  },
  "hsl": {
    "h": 56.769,
    "s": 63.107,
    "l": 59.608
  },
  "oklch": {
    "l": 0.84617,
    "c": 0.14351,
    "h": 106
  },
  "luminance": 0.61533
}

Semantic roles & 50–950 ramp

primary
#D9D257
secondary
#3B4099
accent
#4BE642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D9D257

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

Preview Lab → · Contrast checker → · Palette generator →

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