#D4C151#D4C151

#D4C151 is a light, vivid yellow. Relative luminance 0.527; OKLCH L 80.6% C 0.133 H 99.7°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#D4C151
RGBrgb(212, 193, 81)
HSLhsl(51, 60%, 57%)
HSVhsv(51, 62%, 83%)
CMYKcmyk(0%, 9%, 61.8%, 16.9%)
CIE-LABlab(77.72, -6.59, 57.27)
CIE-LCHlch(77.72, 57.65, 96.56°)
OKLaboklab(80.57% -0.0224 0.1311)
OKLCHoklch(80.57% 0.133 99.7)
XYZxyz(47.7085, 52.7331, 15.4485)
Luminance0.5273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C151 #5164D4
analogous
#D48051 #D4C151 #A5D451
triadic
#D4C151 #51D4C1 #C151D4
tetradic
#D4C151 #51D480 #5164D4 #D451A5
square
#D4C151 #51D480 #5164D4 #D451A5
split-complementary
#D4C151 #51A5D4 #8051D4
monochromatic
#897A22 #BAA62E #D4C151 #E0D282 #ECE4B3

Accessibility & contrast

On white

1.82
#D4C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.55
#D4C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C151
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C151#FFFFFF#000000##000000
##D4C1511.001.8211.5511.55
#FFFFFF1.821.0021.0021.00
#00000011.5521.001.001.00
##00000011.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC44
Deuteranopia (green-blind)
#D7C357
Tritanopia (blue-blind)
#E3B4A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d4c151;
/* rgb */ color: rgb(212, 193, 81);
/* oklch */ color: oklch(80.6% 0.133 99.7);
Tailwind
colors: {
  custom: {
    50: '#e4d386',
    500: '#d4c151',
    950: '#000000',
  },
}
SCSS
$custom: #d4c151;
$custom-light: #e4d386;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c151",
  "rgb": {
    "r": 212,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 51.298,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.80566,
    "c": 0.13295,
    "h": 99.7
  },
  "luminance": 0.52731
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4C151

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

Preview Lab → · Contrast checker → · Palette generator →

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