#D5C542#D5C542

#D5C542 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.4% C 0.147 H 102.2°. Best body text is #000000 at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#D5C542
RGBrgb(213, 197, 66)
HSLhsl(53, 64%, 55%)
HSVhsv(53, 69%, 84%)
CMYKcmyk(0%, 7.5%, 69%, 16.5%)
CIE-LABlab(78.74, -9.10, 64.56)
CIE-LCHlch(78.74, 65.20, 98.02°)
OKLaboklab(81.36% -0.0313 0.1441)
OKLCHoklch(81.36% 0.147 102.2)
XYZxyz(48.3923, 54.4740, 13.1187)
Luminance0.5447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C542 #4252D5
analogous
#D57B42 #D5C542 #9CD542
triadic
#D5C542 #42D5C5 #C542D5
tetradic
#D5C542 #42D57B #4252D5 #D5429C
square
#D5C542 #42D57B #4252D5 #D5429C
split-complementary
#D5C542 #429CD5 #7B42D5
monochromatic
#80751C #B2A328 #D5C542 #E0D474 #EBE4A6

Accessibility & contrast

On white

1.77
#D5C542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.89
#D5C542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C542
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C542#FFFFFF#000000##000000
##D5C5421.001.7711.8911.89
#FFFFFF1.771.0021.0021.00
#00000011.8921.001.001.00
##00000011.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#DCC64A
Tritanopia (blue-blind)
#E5B7AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d5c542;
/* rgb */ color: rgb(213, 197, 66);
/* oklch */ color: oklch(81.4% 0.147 102.2);
Tailwind
colors: {
  custom: {
    50: '#e6d67e',
    500: '#d5c542',
    950: '#000000',
  },
}
SCSS
$custom: #d5c542;
$custom-light: #e6d67e;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c542",
  "rgb": {
    "r": 213,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 53.469,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.81359,
    "c": 0.14747,
    "h": 102.2
  },
  "luminance": 0.54472
}

Semantic roles & 50–950 ramp

primary
#D5C542
secondary
#343D87
accent
#53E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D5C542

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

Preview Lab → · Contrast checker → · Palette generator →

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