#D5C54B#D5C54B

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

Color values

HEX#D5C54B
RGBrgb(213, 197, 75)
HSLhsl(53, 62%, 56%)
HSVhsv(53, 65%, 84%)
CMYKcmyk(0%, 7.5%, 64.8%, 16.5%)
CIE-LABlab(78.80, -8.60, 61.02)
CIE-LCHlch(78.80, 61.63, 98.02°)
OKLaboklab(81.43% -0.0289 0.1381)
OKLCHoklch(81.43% 0.141 101.8)
XYZxyz(48.6788, 54.5886, 14.6278)
Luminance0.5459 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C54B #4B5BD5
analogous
#D5804B #D5C54B #A0D54B
triadic
#D5C54B #4BD5C5 #C54BD5
tetradic
#D5C54B #4BD580 #4B5BD5 #D54BA0
square
#D5C54B #4BD580 #4B5BD5 #D54BA0
split-complementary
#D5C54B #4BA0D5 #804BD5
monochromatic
#867A1F #B8A82B #D5C54B #E1D57D #ECE5AE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D5C54B#FFFFFF#000000##000000
##D5C54B1.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)
#D6BF3C
Deuteranopia (green-blind)
#DBC652
Tritanopia (blue-blind)
#E5B8AC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d5c54b;
/* rgb */ color: rgb(213, 197, 75);
/* oklch */ color: oklch(81.4% 0.141 101.8);
Tailwind
colors: {
  custom: {
    50: '#e5d683',
    500: '#d5c54b',
    950: '#000000',
  },
}
SCSS
$custom: #d5c54b;
$custom-light: #e5d683;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c54b",
  "rgb": {
    "r": 213,
    "g": 197,
    "b": 75
  },
  "hsl": {
    "h": 53.043,
    "s": 62.162,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81433,
    "c": 0.14109,
    "h": 101.8
  },
  "luminance": 0.54587
}

Semantic roles & 50–950 ramp

primary
#D5C54B
secondary
#37418D
accent
#55E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D5C54B

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

Preview Lab → · Contrast checker → · Palette generator →

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