#D5C04D#D5C04D

#D5C04D is a light, vivid yellow. Relative luminance 0.524; OKLCH L 80.4% C 0.135 H 98.9°. Best body text is #000000 at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#D5C04D
RGBrgb(213, 192, 77)
HSLhsl(51, 62%, 57%)
HSVhsv(51, 64%, 84%)
CMYKcmyk(0%, 9.9%, 63.8%, 16.5%)
CIE-LABlab(77.51, -5.91, 58.81)
CIE-LCHlch(77.51, 59.10, 95.74°)
OKLaboklab(80.41% -0.021 0.1337)
OKLCHoklch(80.41% 0.135 98.9)
XYZxyz(47.6318, 52.3834, 14.6218)
Luminance0.5238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C04D #4D62D5
analogous
#D57C4D #D5C04D #A6D54D
triadic
#D5C04D #4DD5C0 #C04DD5
tetradic
#D5C04D #4DD57C #4D62D5 #D54DA6
square
#D5C04D #4DD57C #4D62D5 #D54DA6
split-complementary
#D5C04D #4DA6D5 #7C4DD5
monochromatic
#887820 #B9A32C #D5C04D #E1D27F #ECE3B0

Accessibility & contrast

On white

1.83
#D5C04D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.48
#D5C04D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C04D
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C04D#FFFFFF#000000##000000
##D5C04D1.001.8311.4811.48
#FFFFFF1.831.0021.0021.00
#00000011.4821.001.001.00
##00000011.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB3F
Deuteranopia (green-blind)
#D7C353
Tritanopia (blue-blind)
#E5B3A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d5c04d;
/* rgb */ color: rgb(213, 192, 77);
/* oklch */ color: oklch(80.4% 0.135 98.9);
Tailwind
colors: {
  custom: {
    50: '#e5d284',
    500: '#d5c04d',
    950: '#000000',
  },
}
SCSS
$custom: #d5c04d;
$custom-light: #e5d284;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c04d",
  "rgb": {
    "r": 213,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 50.735,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80412,
    "c": 0.13535,
    "h": 98.9
  },
  "luminance": 0.52381
}

Semantic roles & 50–950 ramp

primary
#D5C04D
secondary
#38458E
accent
#5CE543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D5C04D

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

Preview Lab → · Contrast checker → · Palette generator →

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