#D8C140#D8C140

#D8C140 is a light, vivid yellow. Relative luminance 0.531; OKLCH L 80.8% C 0.146 H 98.9°. Best body text is #000000 at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#D8C140
RGBrgb(216, 193, 64)
HSLhsl(51, 66%, 55%)
HSVhsv(51, 70%, 85%)
CMYKcmyk(0%, 10.6%, 70.4%, 15.3%)
CIE-LABlab(77.94, -5.87, 64.62)
CIE-LCHlch(77.94, 64.89, 95.19°)
OKLaboklab(80.79% -0.0225 0.1438)
OKLCHoklch(80.79% 0.146 98.9)
XYZxyz(48.3166, 53.1114, 12.5560)
Luminance0.5311 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C140 #4057D8
analogous
#D87540 #D8C140 #A3D840
triadic
#D8C140 #40D8C1 #C140D8
tetradic
#D8C140 #40D875 #4057D8 #D840A3
square
#D8C140 #40D875 #4057D8 #D840A3
split-complementary
#D8C140 #40A3D8 #7540D8
monochromatic
#83731B #B6A025 #D8C140 #E2D173 #EDE2A6

Accessibility & contrast

On white

1.81
#D8C140 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.62
#D8C140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C140
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C140#FFFFFF#000000##000000
##D8C1401.001.8111.6211.62
#FFFFFF1.811.0021.0021.00
#00000011.6221.001.001.00
##00000011.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2C
Deuteranopia (green-blind)
#DAC448
Tritanopia (blue-blind)
#E9B3A7
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d8c140;
/* rgb */ color: rgb(216, 193, 64);
/* oklch */ color: oklch(80.8% 0.146 98.9);
Tailwind
colors: {
  custom: {
    50: '#e8d37d',
    500: '#d8c140',
    950: '#000000',
  },
}
SCSS
$custom: #d8c140;
$custom-light: #e8d37d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c140",
  "rgb": {
    "r": 216,
    "g": 193,
    "b": 64
  },
  "hsl": {
    "h": 50.921,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.80786,
    "c": 0.14554,
    "h": 98.9
  },
  "luminance": 0.53109
}

Semantic roles & 50–950 ramp

primary
#D8C140
secondary
#33408A
accent
#59E93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8C140

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

Preview Lab → · Contrast checker → · Palette generator →

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