#D8D242#D8D242

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

Color values

HEX#D8D242
RGBrgb(216, 210, 66)
HSLhsl(58, 66%, 55%)
HSVhsv(58, 69%, 85%)
CMYKcmyk(0%, 2.8%, 69.4%, 15.3%)
CIE-LABlab(82.43, -14.39, 68.31)
CIE-LCHlch(82.43, 69.81, 101.90°)
OKLaboklab(84.36% -0.0464 0.1519)
OKLCHoklch(84.36% 0.159 107)
XYZxyz(52.3509, 61.0873, 14.1866)
Luminance0.6109 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D242 #4248D8
analogous
#D88742 #D8D242 #93D842
triadic
#D8D242 #42D8D2 #D242D8
tetradic
#D8D242 #42D887 #4248D8 #D84293
square
#D8D242 #42D887 #4248D8 #D84293
split-complementary
#D8D242 #4293D8 #8742D8
monochromatic
#84801B #B7B126 #D8D242 #E2DE75 #EDEAA7

Accessibility & contrast

On white

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

On black

13.22
#D8D242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D242
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D242#FFFFFF#000000##000000
##D8D2421.001.5913.2213.22
#FFFFFF1.591.0021.0021.00
#00000013.2221.001.001.00
##00000013.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA2A
Deuteranopia (green-blind)
#E6D04C
Tritanopia (blue-blind)
#E7C4B6
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d8d242;
/* rgb */ color: rgb(216, 210, 66);
/* oklch */ color: oklch(84.4% 0.159 107.0);
Tailwind
colors: {
  custom: {
    50: '#e8df7f',
    500: '#d8d242',
    950: '#000000',
  },
}
SCSS
$custom: #d8d242;
$custom-light: #e8df7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d242",
  "rgb": {
    "r": 216,
    "g": 210,
    "b": 66
  },
  "hsl": {
    "h": 57.6,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.84355,
    "c": 0.15885,
    "h": 107
  },
  "luminance": 0.61085
}

Semantic roles & 50–950 ramp

primary
#D8D242
secondary
#33378B
accent
#46E93F
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D8D242

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

Preview Lab → · Contrast checker → · Palette generator →

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