#D7CC5F#D7CC5F

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

Color values

HEX#D7CC5F
RGBrgb(215, 204, 95)
HSLhsl(55, 60%, 61%)
HSVhsv(55, 56%, 84%)
CMYKcmyk(0%, 5.1%, 55.8%, 15.7%)
CIE-LABlab(80.99, -9.97, 54.72)
CIE-LCHlch(80.99, 55.62, 100.33°)
OKLaboklab(83.27% -0.0307 0.1273)
OKLCHoklch(83.27% 0.131 103.6)
XYZxyz(51.6844, 58.4608, 19.3858)
Luminance0.5846 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7CC5F #5F6AD7
analogous
#D7905F #D7CC5F #A6D75F
triadic
#D7CC5F #5FD7CC #CC5FD7
tetradic
#D7CC5F #5FD790 #5F6AD7 #D75FA6
square
#D7CC5F #5FD790 #5F6AD7 #D75FA6
split-complementary
#D7CC5F #5FA6D7 #905FD7
monochromatic
#968C26 #C7B932 #D7CC5F #E3DC90 #EFEBC1

Accessibility & contrast

On white

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

On black

12.69
#D7CC5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7CC5F
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7CC5F#FFFFFF#000000##000000
##D7CC5F1.001.6512.6912.69
#FFFFFF1.651.0021.0021.00
#00000012.6921.001.001.00
##00000012.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC654
Deuteranopia (green-blind)
#E0CC64
Tritanopia (blue-blind)
#E5C0B4
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d7cc5f;
/* rgb */ color: rgb(215, 204, 95);
/* oklch */ color: oklch(83.3% 0.131 103.6);
Tailwind
colors: {
  custom: {
    50: '#e6db90',
    500: '#d7cc5f',
    950: '#000000',
  },
}
SCSS
$custom: #d7cc5f;
$custom-light: #e6db90;
$custom-dark: #000000;
JSON
{
  "hex": "#d7cc5f",
  "rgb": {
    "r": 215,
    "g": 204,
    "b": 95
  },
  "hsl": {
    "h": 54.5,
    "s": 60,
    "l": 60.784
  },
  "oklch": {
    "l": 0.83272,
    "c": 0.13094,
    "h": 103.6
  },
  "luminance": 0.58459
}

Semantic roles & 50–950 ramp

primary
#D7CC5F
secondary
#3F489B
accent
#2DC81E
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D7CC5F

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

Preview Lab → · Contrast checker → · Palette generator →

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