#D7CC5A#D7CC5A

#D7CC5A is a very light, vivid yellow. Relative luminance 0.584; OKLCH L 83.2% C 0.135 H 103.8°. Best body text is #000000 at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#D7CC5A
RGBrgb(215, 204, 90)
HSLhsl(55, 61%, 60%)
HSVhsv(55, 58%, 84%)
CMYKcmyk(0%, 5.1%, 58.1%, 15.7%)
CIE-LABlab(80.95, -10.34, 56.92)
CIE-LCHlch(80.95, 57.85, 100.29°)
OKLaboklab(83.22% -0.0323 0.1314)
OKLCHoklch(83.22% 0.135 103.8)
XYZxyz(51.4644, 58.3728, 18.2270)
Luminance0.5837 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7CC5A #5A65D7
analogous
#D78E5A #D7CC5A #A4D75A
triadic
#D7CC5A #5AD7CC #CC5AD7
tetradic
#D7CC5A #5AD78E #5A65D7 #D75AA4
square
#D7CC5A #5AD78E #5A65D7 #D75AA4
split-complementary
#D7CC5A #5AA4D7 #8E5AD7
monochromatic
#938924 #C4B730 #D7CC5A #E3DB8B #EFEABD

Accessibility & contrast

On white

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

On black

12.67
#D7CC5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7CC5A
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7CC5A#FFFFFF#000000##000000
##D7CC5A1.001.6612.6712.67
#FFFFFF1.661.0021.0021.00
#00000012.6721.001.001.00
##00000012.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC64E
Deuteranopia (green-blind)
#E0CC60
Tritanopia (blue-blind)
#E6BFB3
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d7cc5a;
/* rgb */ color: rgb(215, 204, 90);
/* oklch */ color: oklch(83.2% 0.135 103.8);
Tailwind
colors: {
  custom: {
    50: '#e6db8d',
    500: '#d7cc5a',
    950: '#000000',
  },
}
SCSS
$custom: #d7cc5a;
$custom-light: #e6db8d;
$custom-dark: #000000;
JSON
{
  "hex": "#d7cc5a",
  "rgb": {
    "r": 215,
    "g": 204,
    "b": 90
  },
  "hsl": {
    "h": 54.72,
    "s": 60.976,
    "l": 59.804
  },
  "oklch": {
    "l": 0.83217,
    "c": 0.13533,
    "h": 103.8
  },
  "luminance": 0.58371
}

Semantic roles & 50–950 ramp

primary
#D7CC5A
secondary
#3D4598
accent
#52E444
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D7CC5A

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

Preview Lab → · Contrast checker → · Palette generator →

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