#D8C262#D8C262

#D8C262 is a light, moderate yellow. Relative luminance 0.541; OKLCH L 81.3% C 0.119 H 96.7°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#D8C262
RGBrgb(216, 194, 98)
HSLhsl(49, 60%, 62%)
HSVhsv(49, 55%, 85%)
CMYKcmyk(0%, 10.2%, 54.6%, 15.3%)
CIE-LABlab(78.50, -4.20, 50.46)
CIE-LCHlch(78.50, 50.63, 94.75°)
OKLaboklab(81.33% -0.0138 0.1184)
OKLCHoklch(81.33% 0.119 96.7)
XYZxyz(49.8171, 54.0665, 19.3647)
Luminance0.5406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C262 #6278D8
analogous
#D88762 #D8C262 #B3D862
triadic
#D8C262 #62D8C2 #C262D8
tetradic
#D8C262 #62D887 #6278D8 #D862B3
square
#D8C262 #62D887 #6278D8 #D862B3
split-complementary
#D8C262 #62B3D8 #8762D8
monochromatic
#998426 #CAAE32 #D8C262 #E4D593 #F0E8C4

Accessibility & contrast

On white

1.78
#D8C262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#D8C262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C262
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C262#FFFFFF#000000##000000
##D8C2621.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BE59
Deuteranopia (green-blind)
#D8C566
Tritanopia (blue-blind)
#E7B6AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d8c262;
/* rgb */ color: rgb(216, 194, 98);
/* oklch */ color: oklch(81.3% 0.119 96.7);
Tailwind
colors: {
  custom: {
    50: '#e6d491',
    500: '#d8c262',
    950: '#000000',
  },
}
SCSS
$custom: #d8c262;
$custom-light: #e6d491;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c262",
  "rgb": {
    "r": 216,
    "g": 194,
    "b": 98
  },
  "hsl": {
    "h": 48.814,
    "s": 60.204,
    "l": 61.569
  },
  "oklch": {
    "l": 0.81325,
    "c": 0.1192,
    "h": 96.7
  },
  "luminance": 0.54064
}

Semantic roles & 50–950 ramp

primary
#D8C262
secondary
#40529E
accent
#3DC81E
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D8C262

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

Preview Lab → · Contrast checker → · Palette generator →

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