#D5C841#D5C841

#D5C841 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#D5C841
RGBrgb(213, 200, 65)
HSLhsl(55, 64%, 55%)
HSVhsv(55, 69%, 84%)
CMYKcmyk(0%, 6.1%, 69.5%, 16.5%)
CIE-LABlab(79.52, -10.67, 65.72)
CIE-LCHlch(79.52, 66.58, 99.22°)
OKLaboklab(81.98% -0.0358 0.1464)
OKLCHoklch(81.98% 0.151 103.8)
XYZxyz(49.0510, 55.8383, 13.1941)
Luminance0.5584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C841 #414ED5
analogous
#D57E41 #D5C841 #98D541
triadic
#D5C841 #41D5C8 #C841D5
tetradic
#D5C841 #41D57E #414ED5 #D54198
square
#D5C841 #41D57E #414ED5 #D54198
split-complementary
#D5C841 #4198D5 #7E41D5
monochromatic
#7F771C #B2A527 #D5C841 #E0D773 #EBE5A5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D5C841#FFFFFF#000000##000000
##D5C8411.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)
#DAC12C
Deuteranopia (green-blind)
#DEC84A
Tritanopia (blue-blind)
#E5BAAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d5c841;
/* rgb */ color: rgb(213, 200, 65);
/* oklch */ color: oklch(82.0% 0.151 103.8);
Tailwind
colors: {
  custom: {
    50: '#e6d87e',
    500: '#d5c841',
    950: '#000000',
  },
}
SCSS
$custom: #d5c841;
$custom-light: #e6d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c841",
  "rgb": {
    "r": 213,
    "g": 200,
    "b": 65
  },
  "hsl": {
    "h": 54.73,
    "s": 63.793,
    "l": 54.51
  },
  "oklch": {
    "l": 0.81981,
    "c": 0.15072,
    "h": 103.8
  },
  "luminance": 0.55836
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D5C841

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

Preview Lab → · Contrast checker → · Palette generator →

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