#D8D140#D8D140

#D8D140 is a very light, vivid yellow. Relative luminance 0.606; OKLCH L 84.1% C 0.159 H 106.6°. Best body text is #000000 at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#D8D140
RGBrgb(216, 209, 64)
HSLhsl(57, 66%, 55%)
HSVhsv(57, 70%, 85%)
CMYKcmyk(0%, 3.2%, 70.4%, 15.3%)
CIE-LABlab(82.15, -13.99, 68.76)
CIE-LCHlch(82.15, 70.17, 101.50°)
OKLaboklab(84.13% -0.0455 0.1525)
OKLCHoklch(84.13% 0.159 106.6)
XYZxyz(52.0468, 60.5719, 13.7994)
Luminance0.6057 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D140 #4047D8
analogous
#D88540 #D8D140 #93D840
triadic
#D8D140 #40D8D1 #D140D8
tetradic
#D8D140 #40D885 #4047D8 #D84093
square
#D8D140 #40D885 #4047D8 #D84093
split-complementary
#D8D140 #4093D8 #8540D8
monochromatic
#837E1B #B6AF25 #D8D140 #E2DD73 #EDE9A6

Accessibility & contrast

On white

1.60
#D8D140 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.11
#D8D140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D140
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D140#FFFFFF#000000##000000
##D8D1401.001.6013.1113.11
#FFFFFF1.601.0021.0021.00
#00000013.1121.001.001.00
##00000013.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3C927
Deuteranopia (green-blind)
#E6CF4A
Tritanopia (blue-blind)
#E8C3B5
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d8d140;
/* rgb */ color: rgb(216, 209, 64);
/* oklch */ color: oklch(84.1% 0.159 106.6);
Tailwind
colors: {
  custom: {
    50: '#e8de7e',
    500: '#d8d140',
    950: '#000000',
  },
}
SCSS
$custom: #d8d140;
$custom-light: #e8de7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d140",
  "rgb": {
    "r": 216,
    "g": 209,
    "b": 64
  },
  "hsl": {
    "h": 57.237,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.8413,
    "c": 0.15917,
    "h": 106.6
  },
  "luminance": 0.6057
}

Semantic roles & 50–950 ramp

primary
#D8D140
secondary
#33378A
accent
#47E93F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D8D140

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

Preview Lab → · Contrast checker → · Palette generator →

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