#D8C341#D8C341

#D8C341 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.2% C 0.146 H 99.9°. Best body text is #000000 at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#D8C341
RGBrgb(216, 195, 65)
HSLhsl(52, 66%, 55%)
HSVhsv(52, 70%, 85%)
CMYKcmyk(0%, 9.7%, 69.9%, 15.3%)
CIE-LABlab(78.47, -6.85, 64.76)
CIE-LCHlch(78.47, 65.12, 96.04°)
OKLaboklab(81.21% -0.0252 0.1443)
OKLCHoklch(81.21% 0.146 99.9)
XYZxyz(48.7904, 54.0131, 12.8556)
Luminance0.5401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C341 #4156D8
analogous
#D87841 #D8C341 #A1D841
triadic
#D8C341 #41D8C3 #C341D8
tetradic
#D8C341 #41D878 #4156D8 #D841A1
square
#D8C341 #41D878 #4156D8 #D841A1
split-complementary
#D8C341 #41A1D8 #7841D8
monochromatic
#84751B #B6A225 #D8C341 #E2D374 #EDE3A7

Accessibility & contrast

On white

1.78
#D8C341 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.80
#D8C341 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C341
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C341#FFFFFF#000000##000000
##D8C3411.001.7811.8011.80
#FFFFFF1.781.0021.0021.00
#00000011.8021.001.001.00
##00000011.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE2D
Deuteranopia (green-blind)
#DBC649
Tritanopia (blue-blind)
#E8B5A9
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d8c341;
/* rgb */ color: rgb(216, 195, 65);
/* oklch */ color: oklch(81.2% 0.146 99.9);
Tailwind
colors: {
  custom: {
    50: '#e8d47d',
    500: '#d8c341',
    950: '#000000',
  },
}
SCSS
$custom: #d8c341;
$custom-light: #e8d47d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c341",
  "rgb": {
    "r": 216,
    "g": 195,
    "b": 65
  },
  "hsl": {
    "h": 51.656,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81207,
    "c": 0.14645,
    "h": 99.9
  },
  "luminance": 0.54011
}

Semantic roles & 50–950 ramp

primary
#D8C341
secondary
#333F8A
accent
#57E93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8C341

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

Preview Lab → · Contrast checker → · Palette generator →

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