#D9C757#D9C757

#D9C757 is a very light, vivid yellow. Relative luminance 0.563; OKLCH L 82.3% C 0.133 H 100.2°. Best body text is #000000 at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#D9C757
RGBrgb(217, 199, 87)
HSLhsl(52, 63%, 60%)
HSVhsv(52, 60%, 85%)
CMYKcmyk(0%, 8.3%, 59.9%, 14.9%)
CIE-LABlab(79.78, -7.17, 57.01)
CIE-LCHlch(79.78, 57.46, 97.17°)
OKLaboklab(82.32% -0.0237 0.1312)
OKLCHoklch(82.32% 0.133 100.2)
XYZxyz(50.7609, 56.2888, 17.2060)
Luminance0.5629 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C757 #5769D9
analogous
#D98657 #D9C757 #AAD957
triadic
#D9C757 #57D9C7 #C757D9
tetradic
#D9C757 #57D986 #5769D9 #D957AA
square
#D9C757 #57D986 #5769D9 #D957AA
split-complementary
#D9C757 #57AAD9 #8657D9
monochromatic
#948421 #C6B12D #D9C757 #E4D889 #F0E8BB

Accessibility & contrast

On white

1.71
#D9C757 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.26
#D9C757 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C757
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C757#FFFFFF#000000##000000
##D9C7571.001.7112.2612.26
#FFFFFF1.711.0021.0021.00
#00000012.2621.001.001.00
##00000012.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C24B
Deuteranopia (green-blind)
#DDC95D
Tritanopia (blue-blind)
#E8BAAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d9c757;
/* rgb */ color: rgb(217, 199, 87);
/* oklch */ color: oklch(82.3% 0.133 100.2);
Tailwind
colors: {
  custom: {
    50: '#e8d78a',
    500: '#d9c757',
    950: '#000000',
  },
}
SCSS
$custom: #d9c757;
$custom-light: #e8d78a;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c757",
  "rgb": {
    "r": 217,
    "g": 199,
    "b": 87
  },
  "hsl": {
    "h": 51.692,
    "s": 63.107,
    "l": 59.608
  },
  "oklch": {
    "l": 0.82322,
    "c": 0.1333,
    "h": 100.2
  },
  "luminance": 0.56287
}

Semantic roles & 50–950 ramp

primary
#D9C757
secondary
#3B4899
accent
#58E642
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C757

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

Preview Lab → · Contrast checker → · Palette generator →

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