#D8D254#D8D254

#D8D254 is a very light, vivid yellow. Relative luminance 0.613; OKLCH L 84.5% C 0.146 H 106.6°. Best body text is #000000 at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#D8D254
RGBrgb(216, 210, 84)
HSLhsl(57, 63%, 59%)
HSVhsv(57, 61%, 85%)
CMYKcmyk(0%, 2.8%, 61.1%, 15.3%)
CIE-LABlab(82.56, -13.36, 61.32)
CIE-LCHlch(82.56, 62.76, 102.29°)
OKLaboklab(84.5% -0.0416 0.14)
OKLCHoklch(84.5% 0.146 106.6)
XYZxyz(52.9675, 61.3339, 17.4343)
Luminance0.6133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D254 #545AD8
analogous
#D89054 #D8D254 #9CD854
triadic
#D8D254 #54D8D2 #D254D8
tetradic
#D8D254 #54D890 #545AD8 #D8549C
square
#D8D254 #54D890 #545AD8 #D8549C
split-complementary
#D8D254 #549CD8 #9054D8
monochromatic
#918C21 #C2BC2C #D8D254 #E3DF86 #EFECB8

Accessibility & contrast

On white

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

On black

13.27
#D8D254 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D254
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D254#FFFFFF#000000##000000
##D8D2541.001.5813.2713.27
#FFFFFF1.581.0021.0021.00
#00000013.2721.001.001.00
##00000013.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CB45
Deuteranopia (green-blind)
#E5D05B
Tritanopia (blue-blind)
#E7C5B7
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #d8d254;
/* rgb */ color: rgb(216, 210, 84);
/* oklch */ color: oklch(84.5% 0.146 106.6);
Tailwind
colors: {
  custom: {
    50: '#e7df89',
    500: '#d8d254',
    950: '#000000',
  },
}
SCSS
$custom: #d8d254;
$custom-light: #e7df89;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d254",
  "rgb": {
    "r": 216,
    "g": 210,
    "b": 84
  },
  "hsl": {
    "h": 57.273,
    "s": 62.857,
    "l": 58.824
  },
  "oklch": {
    "l": 0.84503,
    "c": 0.14602,
    "h": 106.6
  },
  "luminance": 0.61332
}

Semantic roles & 50–950 ramp

primary
#D8D254
secondary
#3A3E96
accent
#49E642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D254

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

Preview Lab → · Contrast checker → · Palette generator →

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