#D5D162#D5D162

#D5D162 is a very light, vivid yellow. Relative luminance 0.606; OKLCH L 84.2% C 0.133 H 107.1°. Best body text is #000000 at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#D5D162
RGBrgb(213, 209, 98)
HSLhsl(58, 58%, 61%)
HSVhsv(58, 54%, 84%)
CMYKcmyk(0%, 1.9%, 54%, 16.5%)
CIE-LABlab(82.18, -13.08, 54.66)
CIE-LCHlch(82.18, 56.20, 103.46°)
OKLaboklab(84.19% -0.0391 0.1275)
OKLCHoklch(84.19% 0.133 107.1)
XYZxyz(52.4471, 60.6304, 20.4930)
Luminance0.6063 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D162 #6266D5
analogous
#D59762 #D5D162 #9FD562
triadic
#D5D162 #62D5D1 #D162D5
tetradic
#D5D162 #62D597 #6266D5 #D5629F
square
#D5D162 #62D597 #6266D5 #D5629F
split-complementary
#D5D162 #629FD5 #9762D5
monochromatic
#959128 #C5C035 #D5D162 #E2DF92 #EFEDC3

Accessibility & contrast

On white

1.60
#D5D162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.13
#D5D162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D162
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D162#FFFFFF#000000##000000
##D5D1621.001.6013.1313.13
#FFFFFF1.601.0021.0021.00
#00000013.1321.001.001.00
##00000013.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0CA57
Deuteranopia (green-blind)
#E3CF68
Tritanopia (blue-blind)
#E3C5B8
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d5d162;
/* rgb */ color: rgb(213, 209, 98);
/* oklch */ color: oklch(84.2% 0.133 107.1);
Tailwind
colors: {
  custom: {
    50: '#e4de92',
    500: '#d5d162',
    950: '#000000',
  },
}
SCSS
$custom: #d5d162;
$custom-light: #e4de92;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d162",
  "rgb": {
    "r": 213,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 57.913,
    "s": 57.789,
    "l": 60.98
  },
  "oklch": {
    "l": 0.84185,
    "c": 0.1334,
    "h": 107.1
  },
  "luminance": 0.60629
}

Semantic roles & 50–950 ramp

primary
#D5D162
secondary
#41449A
accent
#26C520
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D5D162

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

Preview Lab → · Contrast checker → · Palette generator →

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