#D9CC51#D9CC51

#D9CC51 is a very light, vivid yellow. Relative luminance 0.585; OKLCH L 83.3% C 0.143 H 103.3°. Best body text is #000000 at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#D9CC51
RGBrgb(217, 204, 81)
HSLhsl(54, 64%, 58%)
HSVhsv(54, 63%, 85%)
CMYKcmyk(0%, 6%, 62.7%, 14.9%)
CIE-LABlab(81.03, -10.11, 60.98)
CIE-LCHlch(81.03, 61.81, 99.42°)
OKLaboklab(83.3% -0.0328 0.1388)
OKLCHoklch(83.3% 0.143 103.3)
XYZxyz(51.6953, 58.5335, 16.3580)
Luminance0.5853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9CC51 #515ED9
analogous
#D98851 #D9CC51 #A2D951
triadic
#D9CC51 #51D9CC #CC51D9
tetradic
#D9CC51 #51D988 #515ED9 #D951A2
square
#D9CC51 #51D988 #515ED9 #D951A2
split-complementary
#D9CC51 #51A2D9 #8851D9
monochromatic
#90851F #C2B42A #D9CC51 #E4DB83 #EFE9B5

Accessibility & contrast

On white

1.65
#D9CC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.71
#D9CC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9CC51
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9CC51#FFFFFF#000000##000000
##D9CC511.001.6512.7112.71
#FFFFFF1.651.0021.0021.00
#00000012.7121.001.001.00
##00000012.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC642
Deuteranopia (green-blind)
#E1CC58
Tritanopia (blue-blind)
#E8BFB2
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d9cc51;
/* rgb */ color: rgb(217, 204, 81);
/* oklch */ color: oklch(83.3% 0.143 103.3);
Tailwind
colors: {
  custom: {
    50: '#e8db87',
    500: '#d9cc51',
    950: '#000000',
  },
}
SCSS
$custom: #d9cc51;
$custom-light: #e8db87;
$custom-dark: #000000;
JSON
{
  "hex": "#d9cc51",
  "rgb": {
    "r": 217,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 54.265,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.83303,
    "c": 0.14262,
    "h": 103.3
  },
  "luminance": 0.58532
}

Semantic roles & 50–950 ramp

primary
#D9CC51
secondary
#394295
accent
#51E741
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D9CC51

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

Preview Lab → · Contrast checker → · Palette generator →

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