#D4C252#D4C252

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

Color values

HEX#D4C252
RGBrgb(212, 194, 82)
HSLhsl(52, 60%, 58%)
HSVhsv(52, 61%, 83%)
CMYKcmyk(0%, 8.5%, 61.3%, 16.9%)
CIE-LABlab(77.99, -7.04, 57.12)
CIE-LCHlch(77.99, 57.56, 97.02°)
OKLaboklab(80.78% -0.0236 0.1309)
OKLCHoklch(80.78% 0.133 100.2)
XYZxyz(47.9681, 53.1918, 15.7214)
Luminance0.5319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C252 #5264D4
analogous
#D48152 #D4C252 #A5D452
triadic
#D4C252 #52D4C2 #C252D4
tetradic
#D4C252 #52D481 #5264D4 #D452A5
square
#D4C252 #52D481 #5264D4 #D452A5
split-complementary
#D4C252 #52A5D4 #8152D4
monochromatic
#897B22 #BAA72E #D4C252 #E0D383 #ECE5B4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4C252#FFFFFF#000000##000000
##D4C2521.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)
#D3BD45
Deuteranopia (green-blind)
#D8C458
Tritanopia (blue-blind)
#E3B5AA
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d4c252;
/* rgb */ color: rgb(212, 194, 82);
/* oklch */ color: oklch(80.8% 0.133 100.2);
Tailwind
colors: {
  custom: {
    50: '#e4d487',
    500: '#d4c252',
    950: '#000000',
  },
}
SCSS
$custom: #d4c252;
$custom-light: #e4d487;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c252",
  "rgb": {
    "r": 212,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 51.692,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80784,
    "c": 0.13299,
    "h": 100.2
  },
  "luminance": 0.5319
}

Semantic roles & 50–950 ramp

primary
#D4C252
secondary
#3B4690
accent
#5AE344
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D4C252

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

Preview Lab → · Contrast checker → · Palette generator →

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