#D9C062#D9C062

#D9C062 is a light, moderate yellow. Relative luminance 0.533; OKLCH L 81.0% C 0.118 H 94.7°. Best body text is #000000 at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#D9C062
RGBrgb(217, 192, 98)
HSLhsl(47, 61%, 62%)
HSVhsv(47, 55%, 85%)
CMYKcmyk(0%, 11.5%, 54.8%, 14.9%)
CIE-LABlab(78.07, -2.74, 49.98)
CIE-LCHlch(78.07, 50.06, 93.14°)
OKLaboklab(81.01% -0.0097 0.1173)
OKLCHoklch(81.01% 0.118 94.7)
XYZxyz(49.6714, 53.3351, 19.2312)
Luminance0.5333 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C062 #627BD9
analogous
#D98562 #D9C062 #B7D962
triadic
#D9C062 #62D9C0 #C062D9
tetradic
#D9C062 #62D985 #627BD9 #D962B7
square
#D9C062 #62D985 #627BD9 #D962B7
split-complementary
#D9C062 #62B7D9 #8562D9
monochromatic
#9B8226 #CCAC31 #D9C062 #E5D493 #F1E8C5

Accessibility & contrast

On white

1.80
#D9C062 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.67
#D9C062 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C062
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C062#FFFFFF#000000##000000
##D9C0621.001.8011.6711.67
#FFFFFF1.801.0021.0021.00
#00000011.6721.001.001.00
##00000011.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BD59
Deuteranopia (green-blind)
#D7C466
Tritanopia (blue-blind)
#E8B4AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d9c062;
/* rgb */ color: rgb(217, 192, 98);
/* oklch */ color: oklch(81.0% 0.118 94.7);
Tailwind
colors: {
  custom: {
    50: '#e7d291',
    500: '#d9c062',
    950: '#000000',
  },
}
SCSS
$custom: #d9c062;
$custom-light: #e7d291;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c062",
  "rgb": {
    "r": 217,
    "g": 192,
    "b": 98
  },
  "hsl": {
    "h": 47.395,
    "s": 61.026,
    "l": 61.765
  },
  "oklch": {
    "l": 0.81008,
    "c": 0.11774,
    "h": 94.7
  },
  "luminance": 0.53333
}

Semantic roles & 50–950 ramp

primary
#D9C062
secondary
#40549F
accent
#41C91D
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140D
muted
#85837F

Preview Lab

Preview with #D9C062

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

Preview Lab → · Contrast checker → · Palette generator →

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