#D4C951#D4C951

#D4C951 is a very light, vivid yellow. Relative luminance 0.564; OKLCH L 82.2% C 0.140 H 104.1°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#D4C951
RGBrgb(212, 201, 81)
HSLhsl(55, 60%, 57%)
HSVhsv(55, 62%, 83%)
CMYKcmyk(0%, 5.2%, 61.8%, 16.9%)
CIE-LABlab(79.82, -10.68, 59.55)
CIE-LCHlch(79.82, 60.50, 100.17°)
OKLaboklab(82.24% -0.0341 0.1359)
OKLCHoklch(82.24% 0.14 104.1)
XYZxyz(49.5250, 56.3662, 16.0540)
Luminance0.5636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C951 #515CD4
analogous
#D48851 #D4C951 #9DD451
triadic
#D4C951 #51D4C9 #C951D4
tetradic
#D4C951 #51D488 #515CD4 #D4519D
square
#D4C951 #51D488 #515CD4 #D4519D
split-complementary
#D4C951 #519DD4 #8851D4
monochromatic
#898022 #BAAE2E #D4C951 #E0D882 #ECE7B3

Accessibility & contrast

On white

1.71
#D4C951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#D4C951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C951
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C951#FFFFFF#000000##000000
##D4C9511.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC343
Deuteranopia (green-blind)
#DDC958
Tritanopia (blue-blind)
#E3BCB0
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d4c951;
/* rgb */ color: rgb(212, 201, 81);
/* oklch */ color: oklch(82.2% 0.140 104.1);
Tailwind
colors: {
  custom: {
    50: '#e4d987',
    500: '#d4c951',
    950: '#000000',
  },
}
SCSS
$custom: #d4c951;
$custom-light: #e4d987;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c951",
  "rgb": {
    "r": 212,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 54.962,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.82238,
    "c": 0.14011,
    "h": 104.1
  },
  "luminance": 0.56364
}

Semantic roles & 50–950 ramp

primary
#D4C951
secondary
#3A418F
accent
#52E444
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D4C951

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

Preview Lab → · Contrast checker → · Palette generator →

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