#D9C851#D9C851

#D9C851 is a very light, vivid yellow. Relative luminance 0.567; OKLCH L 82.5% C 0.139 H 101.2°. Best body text is #000000 at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#D9C851
RGBrgb(217, 200, 81)
HSLhsl(53, 64%, 58%)
HSVhsv(53, 63%, 85%)
CMYKcmyk(0%, 7.8%, 62.7%, 14.9%)
CIE-LABlab(79.99, -8.08, 59.85)
CIE-LCHlch(79.99, 60.40, 97.69°)
OKLaboklab(82.47% -0.027 0.1364)
OKLCHoklch(82.47% 0.139 101.2)
XYZxyz(50.7568, 56.6564, 16.0452)
Luminance0.5665 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C851 #5162D9
analogous
#D98451 #D9C851 #A6D951
triadic
#D9C851 #51D9C8 #C851D9
tetradic
#D9C851 #51D984 #5162D9 #D951A6
square
#D9C851 #51D984 #5162D9 #D951A6
split-complementary
#D9C851 #51A6D9 #8451D9
monochromatic
#90821F #C2AF2A #D9C851 #E4D883 #EFE8B5

Accessibility & contrast

On white

1.70
#D9C851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.33
#D9C851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C851
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C851#FFFFFF#000000##000000
##D9C8511.001.7012.3312.33
#FFFFFF1.701.0021.0021.00
#00000012.3321.001.001.00
##00000012.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C243
Deuteranopia (green-blind)
#DEC957
Tritanopia (blue-blind)
#E9BBAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d9c851;
/* rgb */ color: rgb(217, 200, 81);
/* oklch */ color: oklch(82.5% 0.139 101.2);
Tailwind
colors: {
  custom: {
    50: '#e8d887',
    500: '#d9c851',
    950: '#000000',
  },
}
SCSS
$custom: #d9c851;
$custom-light: #e8d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c851",
  "rgb": {
    "r": 217,
    "g": 200,
    "b": 81
  },
  "hsl": {
    "h": 52.5,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.8247,
    "c": 0.13905,
    "h": 101.2
  },
  "luminance": 0.56654
}

Semantic roles & 50–950 ramp

primary
#D9C851
secondary
#394495
accent
#55E741
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9C851

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

Preview Lab → · Contrast checker → · Palette generator →

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