#D8D240#D8D240

#D8D240 is a very light, vivid yellow. Relative luminance 0.611; OKLCH L 84.3% C 0.160 H 107.0°. Best body text is #000000 at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#D8D240
RGBrgb(216, 210, 64)
HSLhsl(58, 66%, 55%)
HSVhsv(58, 70%, 85%)
CMYKcmyk(0%, 2.8%, 70.4%, 15.3%)
CIE-LABlab(82.41, -14.49, 69.02)
CIE-LCHlch(82.41, 70.52, 101.86°)
OKLaboklab(84.34% -0.0469 0.1531)
OKLCHoklch(84.34% 0.16 107)
XYZxyz(52.2929, 61.0641, 13.8815)
Luminance0.6106 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D240 #4046D8
analogous
#D88640 #D8D240 #92D840
triadic
#D8D240 #40D8D2 #D240D8
tetradic
#D8D240 #40D886 #4046D8 #D84092
square
#D8D240 #40D886 #4046D8 #D84092
split-complementary
#D8D240 #4092D8 #8640D8
monochromatic
#837F1B #B6B025 #D8D240 #E2DE73 #EDEAA6

Accessibility & contrast

On white

1.59
#D8D240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.21
#D8D240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D240
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D240#FFFFFF#000000##000000
##D8D2401.001.5913.2113.21
#FFFFFF1.591.0021.0021.00
#00000013.2121.001.001.00
##00000013.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CA27
Deuteranopia (green-blind)
#E7D04A
Tritanopia (blue-blind)
#E8C4B5
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d8d240;
/* rgb */ color: rgb(216, 210, 64);
/* oklch */ color: oklch(84.3% 0.160 107.0);
Tailwind
colors: {
  custom: {
    50: '#e8df7e',
    500: '#d8d240',
    950: '#000000',
  },
}
SCSS
$custom: #d8d240;
$custom-light: #e8df7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d240",
  "rgb": {
    "r": 216,
    "g": 210,
    "b": 64
  },
  "hsl": {
    "h": 57.632,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.84341,
    "c": 0.1601,
    "h": 107
  },
  "luminance": 0.61062
}

Semantic roles & 50–950 ramp

primary
#D8D240
secondary
#33368A
accent
#45E93F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150B
muted
#85847E

Preview Lab

Preview with #D8D240

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

Preview Lab → · Contrast checker → · Palette generator →

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