#D4C251#D4C251

#D4C251 is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.134 H 100.3°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#D4C251
RGBrgb(212, 194, 81)
HSLhsl(52, 60%, 57%)
HSVhsv(52, 62%, 83%)
CMYKcmyk(0%, 8.5%, 61.8%, 16.9%)
CIE-LABlab(77.98, -7.10, 57.55)
CIE-LCHlch(77.98, 57.99, 97.04°)
OKLaboklab(80.77% -0.0239 0.1317)
OKLCHoklch(80.77% 0.134 100.3)
XYZxyz(47.9303, 53.1767, 15.5224)
Luminance0.5317 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C251 #5163D4
analogous
#D48151 #D4C251 #A4D451
triadic
#D4C251 #51D4C2 #C251D4
tetradic
#D4C251 #51D481 #5163D4 #D451A4
square
#D4C251 #51D481 #5163D4 #D451A4
split-complementary
#D4C251 #51A4D4 #8151D4
monochromatic
#897B22 #BAA72E #D4C251 #E0D382 #ECE4B3

Accessibility & contrast

On white

1.80
#D4C251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.64
#D4C251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C251
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C251#FFFFFF#000000##000000
##D4C2511.001.8011.6411.64
#FFFFFF1.801.0021.0021.00
#00000011.6421.001.001.00
##00000011.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD44
Deuteranopia (green-blind)
#D8C457
Tritanopia (blue-blind)
#E3B5AA
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d4c251;
/* rgb */ color: rgb(212, 194, 81);
/* oklch */ color: oklch(80.8% 0.134 100.3);
Tailwind
colors: {
  custom: {
    50: '#e4d486',
    500: '#d4c251',
    950: '#000000',
  },
}
SCSS
$custom: #d4c251;
$custom-light: #e4d486;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c251",
  "rgb": {
    "r": 212,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 51.756,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.80774,
    "c": 0.13381,
    "h": 100.3
  },
  "luminance": 0.53175
}

Semantic roles & 50–950 ramp

primary
#D4C251
secondary
#3A468F
accent
#5AE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4C251

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

Preview Lab → · Contrast checker → · Palette generator →

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