#D4B954#D4B954

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

Color values

HEX#D4B954
RGBrgb(212, 185, 84)
HSLhsl(47, 60%, 58%)
HSVhsv(47, 60%, 83%)
CMYKcmyk(0%, 12.7%, 60.4%, 16.9%)
CIE-LABlab(75.66, -2.23, 53.65)
CIE-LCHlch(75.66, 53.70, 92.38°)
OKLaboklab(78.95% -0.0095 0.1237)
OKLCHoklch(78.95% 0.124 94.4)
XYZxyz(46.1026, 49.3373, 15.4805)
Luminance0.4934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B954 #546FD4
analogous
#D47954 #D4B954 #AFD454
triadic
#D4B954 #54D4B9 #B954D4
tetradic
#D4B954 #54D479 #546FD4 #D454AF
square
#D4B954 #54D479 #546FD4 #D454AF
split-complementary
#D4B954 #54AFD4 #7954D4
monochromatic
#8B7523 #BC9E2F #D4B954 #E0CD85 #EDE1B6

Accessibility & contrast

On white

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

On black

10.87
#D4B954 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B954
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B954#FFFFFF#000000##000000
##D4B9541.001.9310.8710.87
#FFFFFF1.931.0021.0021.00
#00000010.8721.001.001.00
##00000010.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4b954;
/* rgb */ color: rgb(212, 185, 84);
/* oklch */ color: oklch(78.9% 0.124 94.4);
Tailwind
colors: {
  custom: {
    50: '#e4cd88',
    500: '#d4b954',
    950: '#000000',
  },
}
SCSS
$custom: #d4b954;
$custom-light: #e4cd88;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b954",
  "rgb": {
    "r": 212,
    "g": 185,
    "b": 84
  },
  "hsl": {
    "h": 47.344,
    "s": 59.813,
    "l": 58.039
  },
  "oklch": {
    "l": 0.78947,
    "c": 0.12411,
    "h": 94.4
  },
  "luminance": 0.49335
}

Semantic roles & 50–950 ramp

primary
#D4B954
secondary
#A8B3DB
accent
#66E345
background
#FEFCF8
surface
#FDF9F0
border
#D5D2CB
text
#16130C
muted
#84827D

Preview Lab

Preview with #D4B954

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

Preview Lab → · Contrast checker → · Palette generator →

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