#D9C262#D9C262

#D9C262 is a light, moderate yellow. Relative luminance 0.542; OKLCH L 81.4% C 0.119 H 96.1°. Best body text is #000000 at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#D9C262
RGBrgb(217, 194, 98)
HSLhsl(48, 61%, 62%)
HSVhsv(48, 55%, 85%)
CMYKcmyk(0%, 10.6%, 54.8%, 14.9%)
CIE-LABlab(78.59, -3.78, 50.59)
CIE-LCHlch(78.59, 50.73, 94.27°)
OKLaboklab(81.42% -0.0127 0.1187)
OKLCHoklch(81.42% 0.119 96.1)
XYZxyz(50.1135, 54.2193, 19.3786)
Luminance0.5422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C262 #6279D9
analogous
#D98762 #D9C262 #B5D962
triadic
#D9C262 #62D9C2 #C262D9
tetradic
#D9C262 #62D987 #6279D9 #D962B5
square
#D9C262 #62D987 #6279D9 #D962B5
split-complementary
#D9C262 #62B5D9 #8762D9
monochromatic
#9B8426 #CCAE31 #D9C262 #E5D593 #F1E8C5

Accessibility & contrast

On white

1.77
#D9C262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.84
#D9C262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C262
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C262#FFFFFF#000000##000000
##D9C2621.001.7711.8411.84
#FFFFFF1.771.0021.0021.00
#00000011.8421.001.001.00
##00000011.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BE59
Deuteranopia (green-blind)
#D9C666
Tritanopia (blue-blind)
#E8B6AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d9c262;
/* rgb */ color: rgb(217, 194, 98);
/* oklch */ color: oklch(81.4% 0.119 96.1);
Tailwind
colors: {
  custom: {
    50: '#e7d491',
    500: '#d9c262',
    950: '#000000',
  },
}
SCSS
$custom: #d9c262;
$custom-light: #e7d491;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c262",
  "rgb": {
    "r": 217,
    "g": 194,
    "b": 98
  },
  "hsl": {
    "h": 48.403,
    "s": 61.026,
    "l": 61.765
  },
  "oklch": {
    "l": 0.81417,
    "c": 0.11933,
    "h": 96.1
  },
  "luminance": 0.54217
}

Semantic roles & 50–950 ramp

primary
#D9C262
secondary
#40529F
accent
#3EC91D
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140D
muted
#85837F

Preview Lab

Preview with #D9C262

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

Preview Lab → · Contrast checker → · Palette generator →

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