#D5C842#D5C842

#D5C842 is a light, vivid yellow. Relative luminance 0.558; OKLCH L 82.0% C 0.150 H 103.7°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#D5C842
RGBrgb(213, 200, 66)
HSLhsl(55, 64%, 55%)
HSVhsv(55, 69%, 84%)
CMYKcmyk(0%, 6.1%, 69%, 16.5%)
CIE-LABlab(79.53, -10.62, 65.35)
CIE-LCHlch(79.53, 66.21, 99.23°)
OKLaboklab(81.99% -0.0356 0.1458)
OKLCHoklch(81.99% 0.15 103.7)
XYZxyz(49.0802, 55.8500, 13.3480)
Luminance0.5585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C842 #424FD5
analogous
#D57F42 #D5C842 #98D542
triadic
#D5C842 #42D5C8 #C842D5
tetradic
#D5C842 #42D57F #424FD5 #D54298
square
#D5C842 #42D57F #424FD5 #D54298
split-complementary
#D5C842 #4298D5 #7F42D5
monochromatic
#80771C #B2A628 #D5C842 #E0D774 #EBE5A6

Accessibility & contrast

On white

1.73
#D5C842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.17
#D5C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C842
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C842#FFFFFF#000000##000000
##D5C8421.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC12E
Deuteranopia (green-blind)
#DEC84B
Tritanopia (blue-blind)
#E5BAAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d5c842;
/* rgb */ color: rgb(213, 200, 66);
/* oklch */ color: oklch(82.0% 0.150 103.7);
Tailwind
colors: {
  custom: {
    50: '#e6d87e',
    500: '#d5c842',
    950: '#000000',
  },
}
SCSS
$custom: #d5c842;
$custom-light: #e6d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c842",
  "rgb": {
    "r": 213,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 54.694,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.81988,
    "c": 0.15006,
    "h": 103.7
  },
  "luminance": 0.55848
}

Semantic roles & 50–950 ramp

primary
#D5C842
secondary
#343B87
accent
#50E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D5C842

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

Preview Lab → · Contrast checker → · Palette generator →

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