#D8D348#D8D348

#D8D348 is a very light, vivid yellow. Relative luminance 0.617; OKLCH L 84.6% C 0.156 H 107.3°. Best body text is #000000 at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#D8D348
RGBrgb(216, 211, 72)
HSLhsl(58, 65%, 56%)
HSVhsv(58, 67%, 85%)
CMYKcmyk(0%, 2.3%, 66.7%, 15.3%)
CIE-LABlab(82.73, -14.58, 66.36)
CIE-LCHlch(82.73, 67.94, 102.39°)
OKLaboklab(84.61% -0.0463 0.1488)
OKLCHoklch(84.61% 0.156 107.3)
XYZxyz(52.7848, 61.6571, 15.2501)
Luminance0.6166 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D348 #484DD8
analogous
#D88B48 #D8D348 #95D848
triadic
#D8D348 #48D8D3 #D348D8
tetradic
#D8D348 #48D88B #484DD8 #D84895
square
#D8D348 #48D88B #484DD8 #D84895
split-complementary
#D8D348 #4895D8 #8B48D8
monochromatic
#89851D #BBB628 #D8D348 #E3DF7A #EEEBAD

Accessibility & contrast

On white

1.58
#D8D348 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.33
#D8D348 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D348
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D348#FFFFFF#000000##000000
##D8D3481.001.5813.3313.33
#FFFFFF1.581.0021.0021.00
#00000013.3321.001.001.00
##00000013.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CB34
Deuteranopia (green-blind)
#E7D051
Tritanopia (blue-blind)
#E7C6B7
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d8d348;
/* rgb */ color: rgb(216, 211, 72);
/* oklch */ color: oklch(84.6% 0.156 107.3);
Tailwind
colors: {
  custom: {
    50: '#e7e083',
    500: '#d8d348',
    950: '#000000',
  },
}
SCSS
$custom: #d8d348;
$custom-light: #e7e083;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d348",
  "rgb": {
    "r": 216,
    "g": 211,
    "b": 72
  },
  "hsl": {
    "h": 57.917,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.84611,
    "c": 0.15585,
    "h": 107.3
  },
  "luminance": 0.61655
}

Semantic roles & 50–950 ramp

primary
#D8D348
secondary
#36398F
accent
#46E840
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D8D348

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

Preview Lab → · Contrast checker → · Palette generator →

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