#D4C152#D4C152

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

Color values

HEX#D4C152
RGBrgb(212, 193, 82)
HSLhsl(51, 60%, 58%)
HSVhsv(51, 61%, 83%)
CMYKcmyk(0%, 9%, 61.3%, 16.9%)
CIE-LABlab(77.73, -6.52, 56.84)
CIE-LCHlch(77.73, 57.21, 96.55°)
OKLaboklab(80.58% -0.0221 0.1303)
OKLCHoklch(80.58% 0.132 99.6)
XYZxyz(47.7462, 52.7482, 15.6474)
Luminance0.5275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C152 #5265D4
analogous
#D48052 #D4C152 #A6D452
triadic
#D4C152 #52D4C1 #C152D4
tetradic
#D4C152 #52D480 #5265D4 #D452A6
square
#D4C152 #52D480 #5265D4 #D452A6
split-complementary
#D4C152 #52A6D4 #8052D4
monochromatic
#897A22 #BAA62E #D4C152 #E0D383 #ECE4B4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4C152#FFFFFF#000000##000000
##D4C1521.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)
#D2BC46
Deuteranopia (green-blind)
#D7C358
Tritanopia (blue-blind)
#E3B4A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d4c152;
/* rgb */ color: rgb(212, 193, 82);
/* oklch */ color: oklch(80.6% 0.132 99.6);
Tailwind
colors: {
  custom: {
    50: '#e4d387',
    500: '#d4c152',
    950: '#000000',
  },
}
SCSS
$custom: #d4c152;
$custom-light: #e4d387;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c152",
  "rgb": {
    "r": 212,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 51.231,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80576,
    "c": 0.13213,
    "h": 99.6
  },
  "luminance": 0.52746
}

Semantic roles & 50–950 ramp

primary
#D4C152
secondary
#3B4790
accent
#5CE344
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D4C152

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

Preview Lab → · Contrast checker → · Palette generator →

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