#D6D162#D6D162

#D6D162 is a very light, vivid yellow. Relative luminance 0.608; OKLCH L 84.3% C 0.133 H 106.6°. Best body text is #000000 at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#D6D162
RGBrgb(214, 209, 98)
HSLhsl(57, 59%, 61%)
HSVhsv(57, 54%, 84%)
CMYKcmyk(0%, 2.3%, 54.2%, 16.1%)
CIE-LABlab(82.26, -12.67, 54.77)
CIE-LCHlch(82.26, 56.22, 103.03°)
OKLaboklab(84.27% -0.038 0.1278)
OKLCHoklch(84.27% 0.133 106.6)
XYZxyz(52.7381, 60.7805, 20.5066)
Luminance0.6078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D6D162 #6267D6
analogous
#D69762 #D6D162 #A1D662
triadic
#D6D162 #62D6D1 #D162D6
tetradic
#D6D162 #62D697 #6267D6 #D662A1
square
#D6D162 #62D697 #6267D6 #D662A1
split-complementary
#D6D162 #62A1D6 #9762D6
monochromatic
#969227 #C7C134 #D6D162 #E3DF93 #EFEDC3

Accessibility & contrast

On white

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

On black

13.16
#D6D162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D6D162
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D6D162#FFFFFF#000000##000000
##D6D1621.001.6013.1613.16
#FFFFFF1.601.0021.0021.00
#00000013.1621.001.001.00
##00000013.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d6d162;
/* rgb */ color: rgb(214, 209, 98);
/* oklch */ color: oklch(84.3% 0.133 106.6);
Tailwind
colors: {
  custom: {
    50: '#e5de92',
    500: '#d6d162',
    950: '#000000',
  },
}
SCSS
$custom: #d6d162;
$custom-light: #e5de92;
$custom-dark: #000000;
JSON
{
  "hex": "#d6d162",
  "rgb": {
    "r": 214,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 57.414,
    "s": 58.586,
    "l": 61.176
  },
  "oklch": {
    "l": 0.84269,
    "c": 0.1333,
    "h": 106.6
  },
  "luminance": 0.60779
}

Semantic roles & 50–950 ramp

primary
#D6D162
secondary
#41459B
accent
#26C61F
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D6D162

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

Preview Lab → · Contrast checker → · Palette generator →

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