#D7CC51#D7CC51

#D7CC51 is a very light, vivid yellow. Relative luminance 0.582; OKLCH L 83.1% C 0.143 H 104.2°. Best body text is #000000 at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#D7CC51
RGBrgb(215, 204, 81)
HSLhsl(55, 63%, 58%)
HSVhsv(55, 62%, 84%)
CMYKcmyk(0%, 5.1%, 62.3%, 15.7%)
CIE-LABlab(80.87, -10.95, 60.75)
CIE-LCHlch(80.87, 61.73, 100.22°)
OKLaboklab(83.13% -0.035 0.1384)
OKLCHoklch(83.13% 0.143 104.2)
XYZxyz(51.1043, 58.2287, 16.3303)
Luminance0.5823 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7CC51 #515CD7
analogous
#D78951 #D7CC51 #9FD751
triadic
#D7CC51 #51D7CC #CC51D7
tetradic
#D7CC51 #51D789 #515CD7 #D7519F
square
#D7CC51 #51D789 #515CD7 #D7519F
split-complementary
#D7CC51 #519FD7 #8951D7
monochromatic
#8D8420 #BFB32C #D7CC51 #E2DB83 #EEE9B5

Accessibility & contrast

On white

1.66
#D7CC51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.65
#D7CC51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7CC51
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7CC51#FFFFFF#000000##000000
##D7CC511.001.6612.6512.65
#FFFFFF1.661.0021.0021.00
#00000012.6521.001.001.00
##00000012.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC542
Deuteranopia (green-blind)
#E1CB58
Tritanopia (blue-blind)
#E6BFB2
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d7cc51;
/* rgb */ color: rgb(215, 204, 81);
/* oklch */ color: oklch(83.1% 0.143 104.2);
Tailwind
colors: {
  custom: {
    50: '#e6db87',
    500: '#d7cc51',
    950: '#000000',
  },
}
SCSS
$custom: #d7cc51;
$custom-light: #e6db87;
$custom-dark: #000000;
JSON
{
  "hex": "#d7cc51",
  "rgb": {
    "r": 215,
    "g": 204,
    "b": 81
  },
  "hsl": {
    "h": 55.075,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.83128,
    "c": 0.14272,
    "h": 104.2
  },
  "luminance": 0.58227
}

Semantic roles & 50–950 ramp

primary
#D7CC51
secondary
#394193
accent
#50E642
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7CC51

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

Preview Lab → · Contrast checker → · Palette generator →

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