#D5C840#D5C840

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

Color values

HEX#D5C840
RGBrgb(213, 200, 64)
HSLhsl(55, 64%, 54%)
HSVhsv(55, 70%, 84%)
CMYKcmyk(0%, 6.1%, 70%, 16.5%)
CIE-LABlab(79.52, -10.72, 66.09)
CIE-LCHlch(79.52, 66.96, 99.22°)
OKLaboklab(81.97% -0.0361 0.147)
OKLCHoklch(81.97% 0.151 103.8)
XYZxyz(49.0223, 55.8268, 13.0429)
Luminance0.5583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C840 #404DD5
analogous
#D57E40 #D5C840 #98D540
triadic
#D5C840 #40D5C8 #C840D5
tetradic
#D5C840 #40D57E #404DD5 #D54098
square
#D5C840 #40D57E #404DD5 #D54098
split-complementary
#D5C840 #4098D5 #7E40D5
monochromatic
#7F761C #B1A527 #D5C840 #E0D672 #EBE5A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D5C840#FFFFFF#000000##000000
##D5C8401.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)
#DAC12A
Deuteranopia (green-blind)
#DEC849
Tritanopia (blue-blind)
#E5BAAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d5c840;
/* rgb */ color: rgb(213, 200, 64);
/* oklch */ color: oklch(82.0% 0.151 103.8);
Tailwind
colors: {
  custom: {
    50: '#e6d87d',
    500: '#d5c840',
    950: '#000000',
  },
}
SCSS
$custom: #d5c840;
$custom-light: #e6d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c840",
  "rgb": {
    "r": 213,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 54.765,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.81973,
    "c": 0.15137,
    "h": 103.8
  },
  "luminance": 0.55825
}

Semantic roles & 50–950 ramp

primary
#D5C840
secondary
#333A86
accent
#4FE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D5C840

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

Preview Lab → · Contrast checker → · Palette generator →

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