#D8D248#D8D248

#D8D248 is a very light, vivid yellow. Relative luminance 0.612; OKLCH L 84.4% C 0.155 H 106.9°. Best body text is #000000 at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#D8D248
RGBrgb(216, 210, 72)
HSLhsl(58, 65%, 56%)
HSVhsv(58, 67%, 85%)
CMYKcmyk(0%, 2.8%, 66.7%, 15.3%)
CIE-LABlab(82.47, -14.08, 66.09)
CIE-LCHlch(82.47, 67.57, 102.03°)
OKLaboklab(84.4% -0.0449 0.1483)
OKLCHoklch(84.4% 0.155 106.9)
XYZxyz(52.5371, 61.1618, 15.1676)
Luminance0.6116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D248 #484ED8
analogous
#D88A48 #D8D248 #96D848
triadic
#D8D248 #48D8D2 #D248D8
tetradic
#D8D248 #48D88A #484ED8 #D84896
square
#D8D248 #48D88A #484ED8 #D84896
split-complementary
#D8D248 #4896D8 #8A48D8
monochromatic
#89841D #BBB528 #D8D248 #E3DE7A #EEEBAD

Accessibility & contrast

On white

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

On black

13.23
#D8D248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D248
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D248#FFFFFF#000000##000000
##D8D2481.001.5913.2313.23
#FFFFFF1.591.0021.0021.00
#00000013.2321.001.001.00
##00000013.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CA34
Deuteranopia (green-blind)
#E6D051
Tritanopia (blue-blind)
#E7C5B6
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d8d248;
/* rgb */ color: rgb(216, 210, 72);
/* oklch */ color: oklch(84.4% 0.155 106.9);
Tailwind
colors: {
  custom: {
    50: '#e7df82',
    500: '#d8d248',
    950: '#000000',
  },
}
SCSS
$custom: #d8d248;
$custom-light: #e7df82;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d248",
  "rgb": {
    "r": 216,
    "g": 210,
    "b": 72
  },
  "hsl": {
    "h": 57.5,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.844,
    "c": 0.1549,
    "h": 106.9
  },
  "luminance": 0.6116
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D8D248

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

Preview Lab → · Contrast checker → · Palette generator →

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