#D5C04F#D5C04F

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

Color values

HEX#D5C04F
RGBrgb(213, 192, 79)
HSLhsl(51, 61%, 57%)
HSVhsv(51, 63%, 84%)
CMYKcmyk(0%, 9.9%, 62.9%, 16.5%)
CIE-LABlab(77.53, -5.78, 57.96)
CIE-LCHlch(77.53, 58.25, 95.70°)
OKLaboklab(80.43% -0.0204 0.1322)
OKLCHoklch(80.43% 0.134 98.8)
XYZxyz(47.7035, 52.4121, 14.9994)
Luminance0.5241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C04F #4F64D5
analogous
#D57D4F #D5C04F #A7D54F
triadic
#D5C04F #4FD5C0 #C04FD5
tetradic
#D5C04F #4FD57D #4F64D5 #D54FA7
square
#D5C04F #4FD57D #4F64D5 #D54FA7
split-complementary
#D5C04F #4FA7D5 #7D4FD5
monochromatic
#897921 #BAA42C #D5C04F #E1D280 #EDE3B2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D5C04F#FFFFFF#000000##000000
##D5C04F1.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)
#D1BB42
Deuteranopia (green-blind)
#D7C355
Tritanopia (blue-blind)
#E5B3A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d5c04f;
/* rgb */ color: rgb(213, 192, 79);
/* oklch */ color: oklch(80.4% 0.134 98.8);
Tailwind
colors: {
  custom: {
    50: '#e5d285',
    500: '#d5c04f',
    950: '#000000',
  },
}
SCSS
$custom: #d5c04f;
$custom-light: #e5d285;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c04f",
  "rgb": {
    "r": 213,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 50.597,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.80431,
    "c": 0.13377,
    "h": 98.8
  },
  "luminance": 0.5241
}

Semantic roles & 50–950 ramp

primary
#D5C04F
secondary
#39478F
accent
#5DE543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D5C04F

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

Preview Lab → · Contrast checker → · Palette generator →

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