#D8D351#D8D351

#D8D351 is a very light, vivid yellow. Relative luminance 0.618; OKLCH L 84.7% C 0.149 H 107.1°. Best body text is #000000 at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#D8D351
RGBrgb(216, 211, 81)
HSLhsl(58, 63%, 58%)
HSVhsv(58, 63%, 85%)
CMYKcmyk(0%, 2.3%, 62.5%, 15.3%)
CIE-LABlab(82.80, -14.05, 62.83)
CIE-LCHlch(82.80, 64.39, 102.60°)
OKLaboklab(84.69% -0.0439 0.1427)
OKLCHoklch(84.69% 0.149 107.1)
XYZxyz(53.1002, 61.7832, 16.9112)
Luminance0.6178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D351 #5156D8
analogous
#D88F51 #D8D351 #99D851
triadic
#D8D351 #51D8D3 #D351D8
tetradic
#D8D351 #51D88F #5156D8 #D85199
square
#D8D351 #51D88F #5156D8 #D85199
split-complementary
#D8D351 #5199D8 #8F51D8
monochromatic
#8F8B20 #C1BB2B #D8D351 #E3E083 #EEECB5

Accessibility & contrast

On white

1.57
#D8D351 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.36
#D8D351 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D351
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D351#FFFFFF#000000##000000
##D8D3511.001.5713.3613.36
#FFFFFF1.571.0021.0021.00
#00000013.3621.001.001.00
##00000013.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CB41
Deuteranopia (green-blind)
#E6D159
Tritanopia (blue-blind)
#E7C6B8
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d8d351;
/* rgb */ color: rgb(216, 211, 81);
/* oklch */ color: oklch(84.7% 0.149 107.1);
Tailwind
colors: {
  custom: {
    50: '#e7e088',
    500: '#d8d351',
    950: '#000000',
  },
}
SCSS
$custom: #d8d351;
$custom-light: #e7e088;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d351",
  "rgb": {
    "r": 216,
    "g": 211,
    "b": 81
  },
  "hsl": {
    "h": 57.778,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.84686,
    "c": 0.14934,
    "h": 107.1
  },
  "luminance": 0.61782
}

Semantic roles & 50–950 ramp

primary
#D8D351
secondary
#393C94
accent
#47E641
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8D351

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

Preview Lab → · Contrast checker → · Palette generator →

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