#D8D938#D8D938

#D8D938 is a very light, vivid yellow. Relative luminance 0.645; OKLCH L 85.8% C 0.171 H 109.9°. Best body text is #000000 at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#D8D938
RGBrgb(216, 217, 56)
HSLhsl(60, 68%, 54%)
HSVhsv(60, 74%, 85%)
CMYKcmyk(0.5%, 0%, 74.2%, 14.9%)
CIE-LABlab(84.23, -18.31, 73.44)
CIE-LCHlch(84.23, 75.69, 104.00°)
OKLaboklab(85.78% -0.0583 0.1611)
OKLCHoklch(85.78% 0.171 109.9)
XYZxyz(53.8475, 64.5118, 13.3561)
Luminance0.6451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D938 #3938D9
analogous
#D98938 #D8D938 #87D938
triadic
#D8D938 #38D8D9 #D938D8
tetradic
#D8D938 #38D989 #3938D9 #D93887
square
#D8D938 #38D989 #3938D9 #D93887
split-complementary
#D8D938 #3887D9 #8938D9
monochromatic
#7E7E18 #B1B222 #D8D938 #E2E36B #ECED9F

Accessibility & contrast

On white

1.51
#D8D938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.90
#D8D938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D938
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D938#FFFFFF#000000##000000
##D8D9381.001.5113.9013.90
#FFFFFF1.511.0021.0021.00
#00000013.9021.001.001.00
##00000013.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD011
Deuteranopia (green-blind)
#ECD445
Tritanopia (blue-blind)
#E7CBBB
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d8d938;
/* rgb */ color: rgb(216, 217, 56);
/* oklch */ color: oklch(85.8% 0.171 109.9);
Tailwind
colors: {
  custom: {
    50: '#e8e47b',
    500: '#d8d938',
    950: '#000000',
  },
}
SCSS
$custom: #d8d938;
$custom-light: #e8e47b;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d938",
  "rgb": {
    "r": 216,
    "g": 217,
    "b": 56
  },
  "hsl": {
    "h": 60.373,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.85779,
    "c": 0.17127,
    "h": 109.9
  },
  "luminance": 0.6451
}

Semantic roles & 50–950 ramp

primary
#D8D938
secondary
#303086
accent
#3DEB3E
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #D8D938

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

Preview Lab → · Contrast checker → · Palette generator →

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