#D2C162#D2C162

#D2C162 is a light, moderate yellow. Relative luminance 0.527; OKLCH L 80.6% C 0.118 H 99.3°. Best body text is #000000 at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#D2C162
RGBrgb(210, 193, 98)
HSLhsl(51, 55%, 60%)
HSVhsv(51, 53%, 82%)
CMYKcmyk(0%, 8.1%, 53.3%, 17.6%)
CIE-LABlab(77.71, -6.16, 49.40)
CIE-LCHlch(77.71, 49.79, 97.11°)
OKLaboklab(80.58% -0.0191 0.1162)
OKLCHoklch(80.58% 0.118 99.3)
XYZxyz(47.8545, 52.7253, 19.2092)
Luminance0.5272 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C162 #6273D2
analogous
#D28962 #D2C162 #ABD262
triadic
#D2C162 #62D2C1 #C162D2
tetradic
#D2C162 #62D289 #6273D2 #D262AB
square
#D2C162 #62D289 #6273D2 #D262AB
split-complementary
#D2C162 #62ABD2 #8962D2
monochromatic
#908129 #C0AB37 #D2C162 #E0D492 #EDE7C1

Accessibility & contrast

On white

1.82
#D2C162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.54
#D2C162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C162
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C162#FFFFFF#000000##000000
##D2C1621.001.8211.5411.54
#FFFFFF1.821.0021.0021.00
#00000011.5421.001.001.00
##00000011.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BC59
Deuteranopia (green-blind)
#D5C366
Tritanopia (blue-blind)
#E0B5AB
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d2c162;
/* rgb */ color: rgb(210, 193, 98);
/* oklch */ color: oklch(80.6% 0.118 99.3);
Tailwind
colors: {
  custom: {
    50: '#e2d391',
    500: '#d2c162',
    950: '#000000',
  },
}
SCSS
$custom: #d2c162;
$custom-light: #e2d391;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c162",
  "rgb": {
    "r": 210,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 50.893,
    "s": 55.446,
    "l": 60.392
  },
  "oklch": {
    "l": 0.80576,
    "c": 0.11777,
    "h": 99.3
  },
  "luminance": 0.52723
}

Semantic roles & 50–950 ramp

primary
#D2C162
secondary
#424F96
accent
#3BC323
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D2C162

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

Preview Lab → · Contrast checker → · Palette generator →

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