#D8D334#D8D334

#D8D334 is a very light, vivid yellow. Relative luminance 0.614; OKLCH L 84.5% C 0.168 H 107.6°. Best body text is #000000 at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#D8D334
RGBrgb(216, 211, 52)
HSLhsl(58, 68%, 53%)
HSVhsv(58, 76%, 85%)
CMYKcmyk(0%, 2.3%, 75.9%, 15.3%)
CIE-LABlab(82.61, -15.50, 73.20)
CIE-LCHlch(82.61, 74.82, 101.96°)
OKLaboklab(84.48% -0.0508 0.1598)
OKLCHoklch(84.48% 0.168 107.6)
XYZxyz(52.2351, 61.4372, 12.3552)
Luminance0.6143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D334 #3439D8
analogous
#D88134 #D8D334 #8BD834
triadic
#D8D334 #34D8D3 #D334D8
tetradic
#D8D334 #34D881 #3439D8 #D8348B
square
#D8D334 #34D881 #3439D8 #D8348B
split-complementary
#D8D334 #348BD8 #8134D8
monochromatic
#7A7717 #ADA921 #D8D334 #E2DE67 #ECE99B

Accessibility & contrast

On white

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

On black

13.29
#D8D334 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D334
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D334#FFFFFF#000000##000000
##D8D3341.001.5813.2913.29
#FFFFFF1.581.0021.0021.00
#00000013.2921.001.001.00
##00000013.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CB07
Deuteranopia (green-blind)
#E8D041
Tritanopia (blue-blind)
#E8C5B5
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d8d334;
/* rgb */ color: rgb(216, 211, 52);
/* oklch */ color: oklch(84.5% 0.168 107.6);
Tailwind
colors: {
  custom: {
    50: '#e8e078',
    500: '#d8d334',
    950: '#000000',
  },
}
SCSS
$custom: #d8d334;
$custom-light: #e8e078;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d334",
  "rgb": {
    "r": 216,
    "g": 211,
    "b": 52
  },
  "hsl": {
    "h": 58.171,
    "s": 67.769,
    "l": 52.549
  },
  "oklch": {
    "l": 0.8448,
    "c": 0.16768,
    "h": 107.6
  },
  "luminance": 0.61435
}

Semantic roles & 50–950 ramp

primary
#D8D334
secondary
#2E3182
accent
#42EB3D
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #D8D334

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

Preview Lab → · Contrast checker → · Palette generator →

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