#D9C162#D9C162

#D9C162 is a light, moderate yellow. Relative luminance 0.538; OKLCH L 81.2% C 0.119 H 95.4°. Best body text is #000000 at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#D9C162
RGBrgb(217, 193, 98)
HSLhsl(48, 61%, 62%)
HSVhsv(48, 55%, 85%)
CMYKcmyk(0%, 11.1%, 54.8%, 14.9%)
CIE-LABlab(78.33, -3.26, 50.28)
CIE-LCHlch(78.33, 50.39, 93.71°)
OKLaboklab(81.21% -0.0112 0.118)
OKLCHoklch(81.21% 0.119 95.4)
XYZxyz(49.8917, 53.7757, 19.3047)
Luminance0.5377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C162 #627AD9
analogous
#D98662 #D9C162 #B6D962
triadic
#D9C162 #62D9C1 #C162D9
tetradic
#D9C162 #62D986 #627AD9 #D962B6
square
#D9C162 #62D986 #627AD9 #D962B6
split-complementary
#D9C162 #62B6D9 #8662D9
monochromatic
#9B8326 #CCAD31 #D9C162 #E5D493 #F1E8C5

Accessibility & contrast

On white

1.79
#D9C162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.75
#D9C162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C162
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C162#FFFFFF#000000##000000
##D9C1621.001.7911.7511.75
#FFFFFF1.791.0021.0021.00
#00000011.7521.001.001.00
##00000011.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d9c162;
/* rgb */ color: rgb(217, 193, 98);
/* oklch */ color: oklch(81.2% 0.119 95.4);
Tailwind
colors: {
  custom: {
    50: '#e7d391',
    500: '#d9c162',
    950: '#000000',
  },
}
SCSS
$custom: #d9c162;
$custom-light: #e7d391;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c162",
  "rgb": {
    "r": 217,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 47.899,
    "s": 61.026,
    "l": 61.765
  },
  "oklch": {
    "l": 0.81212,
    "c": 0.11853,
    "h": 95.4
  },
  "luminance": 0.53773
}

Semantic roles & 50–950 ramp

primary
#D9C162
secondary
#40539F
accent
#3FC91D
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140D
muted
#85837F

Preview Lab

Preview with #D9C162

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

Preview Lab → · Contrast checker → · Palette generator →

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