#D8D262#D8D262

#D8D262 is a very light, vivid yellow. Relative luminance 0.616; OKLCH L 84.6% C 0.134 H 106.1°. Best body text is #000000 at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#D8D262
RGBrgb(216, 210, 98)
HSLhsl(57, 60%, 62%)
HSVhsv(57, 55%, 85%)
CMYKcmyk(0%, 2.8%, 54.6%, 15.3%)
CIE-LABlab(82.69, -12.36, 55.31)
CIE-LCHlch(82.69, 56.67, 102.60°)
OKLaboklab(84.65% -0.0372 0.1289)
OKLCHoklch(84.65% 0.134 106.1)
XYZxyz(53.5717, 61.5756, 20.6162)
Luminance0.6157 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D262 #6268D8
analogous
#D89762 #D8D262 #A3D862
triadic
#D8D262 #62D8D2 #D262D8
tetradic
#D8D262 #62D897 #6268D8 #D862A3
square
#D8D262 #62D897 #6268D8 #D862A3
split-complementary
#D8D262 #62A3D8 #9762D8
monochromatic
#999426 #CAC332 #D8D262 #E4E093 #F0EEC4

Accessibility & contrast

On white

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

On black

13.31
#D8D262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D262
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D262#FFFFFF#000000##000000
##D8D2621.001.5813.3113.31
#FFFFFF1.581.0021.0021.00
#00000013.3121.001.001.00
##00000013.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CB57
Deuteranopia (green-blind)
#E4D068
Tritanopia (blue-blind)
#E6C6B9
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d8d262;
/* rgb */ color: rgb(216, 210, 98);
/* oklch */ color: oklch(84.6% 0.134 106.1);
Tailwind
colors: {
  custom: {
    50: '#e6df92',
    500: '#d8d262',
    950: '#000000',
  },
}
SCSS
$custom: #d8d262;
$custom-light: #e6df92;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d262",
  "rgb": {
    "r": 216,
    "g": 210,
    "b": 98
  },
  "hsl": {
    "h": 56.949,
    "s": 60.204,
    "l": 61.569
  },
  "oklch": {
    "l": 0.84648,
    "c": 0.13414,
    "h": 106.1
  },
  "luminance": 0.61574
}

Semantic roles & 50–950 ramp

primary
#D8D262
secondary
#40459E
accent
#26C81E
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D8D262

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

Preview Lab → · Contrast checker → · Palette generator →

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