#D8C041#D8C041

#D8C041 is a light, vivid yellow. Relative luminance 0.527; OKLCH L 80.6% C 0.144 H 98.3°. Best body text is #000000 at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#D8C041
RGBrgb(216, 192, 65)
HSLhsl(50, 66%, 55%)
HSVhsv(50, 70%, 85%)
CMYKcmyk(0%, 11.1%, 69.9%, 15.3%)
CIE-LABlab(77.69, -5.31, 63.98)
CIE-LCHlch(77.69, 64.20, 94.74°)
OKLaboklab(80.59% -0.0208 0.1426)
OKLCHoklch(80.59% 0.144 98.3)
XYZxyz(48.1250, 52.6822, 12.6338)
Luminance0.5268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C041 #4159D8
analogous
#D87541 #D8C041 #A4D841
triadic
#D8C041 #41D8C0 #C041D8
tetradic
#D8C041 #41D875 #4159D8 #D841A4
square
#D8C041 #41D875 #4159D8 #D841A4
split-complementary
#D8C041 #41A4D8 #7541D8
monochromatic
#84731B #B69F25 #D8C041 #E2D174 #EDE2A7

Accessibility & contrast

On white

1.82
#D8C041 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.54
#D8C041 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C041
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C041#FFFFFF#000000##000000
##D8C0411.001.8211.5411.54
#FFFFFF1.821.0021.0021.00
#00000011.5421.001.001.00
##00000011.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB2E
Deuteranopia (green-blind)
#D9C449
Tritanopia (blue-blind)
#E9B2A6
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d8c041;
/* rgb */ color: rgb(216, 192, 65);
/* oklch */ color: oklch(80.6% 0.144 98.3);
Tailwind
colors: {
  custom: {
    50: '#e8d27d',
    500: '#d8c041',
    950: '#000000',
  },
}
SCSS
$custom: #d8c041;
$custom-light: #e8d27d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c041",
  "rgb": {
    "r": 216,
    "g": 192,
    "b": 65
  },
  "hsl": {
    "h": 50.464,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.80587,
    "c": 0.14413,
    "h": 98.3
  },
  "luminance": 0.5268
}

Semantic roles & 50–950 ramp

primary
#D8C041
secondary
#33418A
accent
#5AE93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8C041

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

Preview Lab → · Contrast checker → · Palette generator →

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