#D7C162#D7C162

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

Color values

HEX#D7C162
RGBrgb(215, 193, 98)
HSLhsl(49, 59%, 61%)
HSVhsv(49, 54%, 84%)
CMYKcmyk(0%, 10.2%, 54.4%, 15.7%)
CIE-LABlab(78.15, -4.09, 50.03)
CIE-LCHlch(78.15, 50.20, 94.68°)
OKLaboklab(81.03% -0.0135 0.1175)
OKLCHoklch(81.03% 0.118 96.5)
XYZxyz(49.3007, 53.4709, 19.2769)
Luminance0.5347 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C162 #6278D7
analogous
#D78762 #D7C162 #B3D762
triadic
#D7C162 #62D7C1 #C162D7
tetradic
#D7C162 #62D787 #6278D7 #D762B3
square
#D7C162 #62D787 #6278D7 #D762B3
split-complementary
#D7C162 #62B3D7 #8762D7
monochromatic
#988327 #C9AD33 #D7C162 #E3D493 #F0E8C4

Accessibility & contrast

On white

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

On black

11.69
#D7C162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C162
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C162#FFFFFF#000000##000000
##D7C1621.001.8011.6911.69
#FFFFFF1.801.0021.0021.00
#00000011.6921.001.001.00
##00000011.6921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d7c162;
/* rgb */ color: rgb(215, 193, 98);
/* oklch */ color: oklch(81.0% 0.118 96.5);
Tailwind
colors: {
  custom: {
    50: '#e6d391',
    500: '#d7c162',
    950: '#000000',
  },
}
SCSS
$custom: #d7c162;
$custom-light: #e6d391;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c162",
  "rgb": {
    "r": 215,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 48.718,
    "s": 59.391,
    "l": 61.373
  },
  "oklch": {
    "l": 0.81029,
    "c": 0.11825,
    "h": 96.5
  },
  "luminance": 0.53469
}

Semantic roles & 50–950 ramp

primary
#D7C162
secondary
#41529D
accent
#3EC71E
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D7C162

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

Preview Lab → · Contrast checker → · Palette generator →

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