#D4B952#D4B952

#D4B952 is a light, vivid yellow. Relative luminance 0.493; OKLCH L 78.9% C 0.126 H 94.6°. Best body text is #000000 at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#D4B952
RGBrgb(212, 185, 82)
HSLhsl(48, 60%, 58%)
HSVhsv(48, 61%, 83%)
CMYKcmyk(0%, 12.7%, 61.3%, 16.9%)
CIE-LABlab(75.64, -2.37, 54.54)
CIE-LCHlch(75.64, 54.59, 92.49°)
OKLaboklab(78.93% -0.0102 0.1254)
OKLCHoklch(78.93% 0.126 94.6)
XYZxyz(46.0254, 49.3064, 15.0738)
Luminance0.4930 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B952 #526DD4
analogous
#D47852 #D4B952 #AED452
triadic
#D4B952 #52D4B9 #B952D4
tetradic
#D4B952 #52D478 #526DD4 #D452AE
square
#D4B952 #52D478 #526DD4 #D452AE
split-complementary
#D4B952 #52AED4 #7852D4
monochromatic
#897422 #BA9D2E #D4B952 #E0CD83 #ECE1B4

Accessibility & contrast

On white

1.93
#D4B952 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.86
#D4B952 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B952
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B952#FFFFFF#000000##000000
##D4B9521.001.9310.8610.86
#FFFFFF1.931.0021.0021.00
#00000010.8621.001.001.00
##00000010.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CAB647
Deuteranopia (green-blind)
#D1BE57
Tritanopia (blue-blind)
#E4ACA3
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d4b952;
/* rgb */ color: rgb(212, 185, 82);
/* oklch */ color: oklch(78.9% 0.126 94.6);
Tailwind
colors: {
  custom: {
    50: '#e4cd86',
    500: '#d4b952',
    950: '#000000',
  },
}
SCSS
$custom: #d4b952;
$custom-light: #e4cd86;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b952",
  "rgb": {
    "r": 212,
    "g": 185,
    "b": 82
  },
  "hsl": {
    "h": 47.538,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.78926,
    "c": 0.12579,
    "h": 94.6
  },
  "luminance": 0.49304
}

Semantic roles & 50–950 ramp

primary
#D4B952
secondary
#A7B2DB
accent
#65E344
background
#FEFCF8
surface
#FDF9F0
border
#D5D2CB
text
#16130B
muted
#84827C

Preview Lab

Preview with #D4B952

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

Preview Lab → · Contrast checker → · Palette generator →

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