#D7D162#D7D162

#D7D162 is a very light, vivid yellow. Relative luminance 0.609; OKLCH L 84.4% C 0.133 H 106.1°. Best body text is #000000 at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#D7D162
RGBrgb(215, 209, 98)
HSLhsl(57, 59%, 61%)
HSVhsv(57, 54%, 84%)
CMYKcmyk(0%, 2.8%, 54.4%, 15.7%)
CIE-LABlab(82.34, -12.26, 54.89)
CIE-LCHlch(82.34, 56.24, 102.59°)
OKLaboklab(84.35% -0.0369 0.128)
OKLCHoklch(84.35% 0.133 106.1)
XYZxyz(53.0309, 60.9314, 20.5204)
Luminance0.6093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7D162 #6268D7
analogous
#D79762 #D7D162 #A3D762
triadic
#D7D162 #62D7D1 #D162D7
tetradic
#D7D162 #62D797 #6268D7 #D762A3
square
#D7D162 #62D797 #6268D7 #D762A3
split-complementary
#D7D162 #62A3D7 #9762D7
monochromatic
#989227 #C9C133 #D7D162 #E3DF93 #F0EEC4

Accessibility & contrast

On white

1.59
#D7D162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.19
#D7D162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7D162
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7D162#FFFFFF#000000##000000
##D7D1621.001.5913.1913.19
#FFFFFF1.591.0021.0021.00
#00000013.1921.001.001.00
##00000013.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d7d162;
/* rgb */ color: rgb(215, 209, 98);
/* oklch */ color: oklch(84.4% 0.133 106.1);
Tailwind
colors: {
  custom: {
    50: '#e6de92',
    500: '#d7d162',
    950: '#000000',
  },
}
SCSS
$custom: #d7d162;
$custom-light: #e6de92;
$custom-dark: #000000;
JSON
{
  "hex": "#d7d162",
  "rgb": {
    "r": 215,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 56.923,
    "s": 59.391,
    "l": 61.373
  },
  "oklch": {
    "l": 0.84353,
    "c": 0.13321,
    "h": 106.1
  },
  "luminance": 0.6093
}

Semantic roles & 50–950 ramp

primary
#D7D162
secondary
#41459D
accent
#27C71E
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D7D162

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

Preview Lab → · Contrast checker → · Palette generator →

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