#D5C162#D5C162

#D5C162 is a light, moderate yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.118 H 97.7°. Best body text is #000000 at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#D5C162
RGBrgb(213, 193, 98)
HSLhsl(50, 58%, 61%)
HSVhsv(50, 54%, 84%)
CMYKcmyk(0%, 9.4%, 54%, 16.5%)
CIE-LABlab(77.98, -4.92, 49.78)
CIE-LCHlch(77.98, 50.02, 95.65°)
OKLaboklab(80.85% -0.0157 0.117)
OKLCHoklch(80.85% 0.118 97.7)
XYZxyz(48.7169, 53.1699, 19.2496)
Luminance0.5317 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C162 #6276D5
analogous
#D58762 #D5C162 #AFD562
triadic
#D5C162 #62D5C1 #C162D5
tetradic
#D5C162 #62D587 #6276D5 #D562AF
square
#D5C162 #62D587 #6276D5 #D562AF
split-complementary
#D5C162 #62AFD5 #8762D5
monochromatic
#958228 #C5AC35 #D5C162 #E2D492 #EFE7C3

Accessibility & contrast

On white

1.81
#D5C162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.63
#D5C162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C162
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C162#FFFFFF#000000##000000
##D5C1621.001.8111.6311.63
#FFFFFF1.811.0021.0021.00
#00000011.6321.001.001.00
##00000011.6321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d5c162;
/* rgb */ color: rgb(213, 193, 98);
/* oklch */ color: oklch(80.8% 0.118 97.7);
Tailwind
colors: {
  custom: {
    50: '#e4d391',
    500: '#d5c162',
    950: '#000000',
  },
}
SCSS
$custom: #d5c162;
$custom-light: #e4d391;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c162",
  "rgb": {
    "r": 213,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 49.565,
    "s": 57.789,
    "l": 60.98
  },
  "oklch": {
    "l": 0.80846,
    "c": 0.11802,
    "h": 97.7
  },
  "luminance": 0.53168
}

Semantic roles & 50–950 ramp

primary
#D5C162
secondary
#41519A
accent
#3DC520
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D5C162

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

Preview Lab → · Contrast checker → · Palette generator →

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