#D5C54D#D5C54D

#D5C54D is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.5% C 0.140 H 101.7°. Best body text is #000000 at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#D5C54D
RGBrgb(213, 197, 77)
HSLhsl(53, 62%, 57%)
HSVhsv(53, 64%, 84%)
CMYKcmyk(0%, 7.5%, 63.8%, 16.5%)
CIE-LABlab(78.82, -8.48, 60.20)
CIE-LCHlch(78.82, 60.80, 98.01°)
OKLaboklab(81.45% -0.0283 0.1367)
OKLCHoklch(81.45% 0.14 101.7)
XYZxyz(48.7483, 54.6165, 14.9940)
Luminance0.5461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C54D #4D5DD5
analogous
#D5814D #D5C54D #A1D54D
triadic
#D5C54D #4DD5C5 #C54DD5
tetradic
#D5C54D #4DD581 #4D5DD5 #D54DA1
square
#D5C54D #4DD581 #4D5DD5 #D54DA1
split-complementary
#D5C54D #4DA1D5 #814DD5
monochromatic
#887B20 #B9A82C #D5C54D #E1D57F #ECE5B0

Accessibility & contrast

On white

1.76
#D5C54D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.92
#D5C54D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C54D
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C54D#FFFFFF#000000##000000
##D5C54D1.001.7611.9211.92
#FFFFFF1.761.0021.0021.00
#00000011.9221.001.001.00
##00000011.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF3E
Deuteranopia (green-blind)
#DBC654
Tritanopia (blue-blind)
#E4B8AC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d5c54d;
/* rgb */ color: rgb(213, 197, 77);
/* oklch */ color: oklch(81.5% 0.140 101.7);
Tailwind
colors: {
  custom: {
    50: '#e5d684',
    500: '#d5c54d',
    950: '#000000',
  },
}
SCSS
$custom: #d5c54d;
$custom-light: #e5d684;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c54d",
  "rgb": {
    "r": 213,
    "g": 197,
    "b": 77
  },
  "hsl": {
    "h": 52.941,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.81451,
    "c": 0.13957,
    "h": 101.7
  },
  "luminance": 0.54614
}

Semantic roles & 50–950 ramp

primary
#D5C54D
secondary
#38428E
accent
#56E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D5C54D

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

Preview Lab → · Contrast checker → · Palette generator →

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