#D7CC4A#D7CC4A

#D7CC4A is a very light, vivid yellow. Relative luminance 0.581; OKLCH L 83.1% C 0.148 H 104.5°. Best body text is #000000 at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#D7CC4A
RGBrgb(215, 204, 74)
HSLhsl(55, 64%, 57%)
HSVhsv(55, 66%, 84%)
CMYKcmyk(0%, 5.1%, 65.6%, 15.7%)
CIE-LABlab(80.81, -11.37, 63.58)
CIE-LCHlch(80.81, 64.59, 100.14°)
OKLaboklab(83.07% -0.037 0.1433)
OKLCHoklch(83.07% 0.148 104.5)
XYZxyz(50.8552, 58.1291, 15.0185)
Luminance0.5813 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7CC4A #4A55D7
analogous
#D7864A #D7CC4A #9CD74A
triadic
#D7CC4A #4AD7CC #CC4AD7
tetradic
#D7CC4A #4AD786 #4A55D7 #D74A9C
square
#D7CC4A #4AD786 #4A55D7 #D74A9C
split-complementary
#D7CC4A #4A9CD7 #864AD7
monochromatic
#88801E #BBAF29 #D7CC4A #E2DA7C #EDE8AE

Accessibility & contrast

On white

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

On black

12.63
#D7CC4A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7CC4A
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7CC4A#FFFFFF#000000##000000
##D7CC4A1.001.6612.6312.63
#FFFFFF1.661.0021.0021.00
#00000012.6321.001.001.00
##00000012.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC539
Deuteranopia (green-blind)
#E1CB52
Tritanopia (blue-blind)
#E6BFB1
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d7cc4a;
/* rgb */ color: rgb(215, 204, 74);
/* oklch */ color: oklch(83.1% 0.148 104.5);
Tailwind
colors: {
  custom: {
    50: '#e7db83',
    500: '#d7cc4a',
    950: '#000000',
  },
}
SCSS
$custom: #d7cc4a;
$custom-light: #e7db83;
$custom-dark: #000000;
JSON
{
  "hex": "#d7cc4a",
  "rgb": {
    "r": 215,
    "g": 204,
    "b": 74
  },
  "hsl": {
    "h": 55.319,
    "s": 63.801,
    "l": 56.667
  },
  "oklch": {
    "l": 0.83067,
    "c": 0.14799,
    "h": 104.5
  },
  "luminance": 0.58127
}

Semantic roles & 50–950 ramp

primary
#D7CC4A
secondary
#373D8F
accent
#4EE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7CC4A

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

Preview Lab → · Contrast checker → · Palette generator →

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