#E2D162#E2D162

#E2D162 is a very light, vivid yellow. Relative luminance 0.627; OKLCH L 85.3% C 0.133 H 100.7°. Best body text is #000000 at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#E2D162
RGBrgb(226, 209, 98)
HSLhsl(52, 69%, 64%)
HSVhsv(52, 57%, 89%)
CMYKcmyk(0%, 7.5%, 56.6%, 11.4%)
CIE-LABlab(83.26, -7.75, 56.18)
CIE-LCHlch(83.26, 56.71, 97.86°)
OKLaboklab(85.3% -0.0247 0.1306)
OKLCHoklch(85.3% 0.133 100.7)
XYZxyz(56.3711, 62.6537, 20.6769)
Luminance0.6265 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2D162 #6273E2
analogous
#E29162 #E2D162 #B3E262
triadic
#E2D162 #62E2D1 #D162E2
tetradic
#E2D162 #62E291 #6273E2 #E262B3
square
#E2D162 #62E291 #6273E2 #E262B3
split-complementary
#E2D162 #62B3E2 #9162E2
monochromatic
#AA981F #D8C22E #E2D162 #ECE096 #F5EFC9

Accessibility & contrast

On white

1.55
#E2D162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.53
#E2D162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2D162
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2D162#FFFFFF#000000##000000
##E2D1621.001.5513.5313.53
#FFFFFF1.551.0021.0021.00
#00000013.5321.001.001.00
##00000013.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2CC57
Deuteranopia (green-blind)
#E7D267
Tritanopia (blue-blind)
#F2C4B8
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #e2d162;
/* rgb */ color: rgb(226, 209, 98);
/* oklch */ color: oklch(85.3% 0.133 100.7);
Tailwind
colors: {
  custom: {
    50: '#eede92',
    500: '#e2d162',
    950: '#000000',
  },
}
SCSS
$custom: #e2d162;
$custom-light: #eede92;
$custom-dark: #000000;
JSON
{
  "hex": "#e2d162",
  "rgb": {
    "r": 226,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 52.031,
    "s": 68.817,
    "l": 63.529
  },
  "oklch": {
    "l": 0.85303,
    "c": 0.13286,
    "h": 100.7
  },
  "luminance": 0.62652
}

Semantic roles & 50–950 ramp

primary
#E2D162
secondary
#3C4BAC
accent
#2ED115
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #E2D162

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

Preview Lab → · Contrast checker → · Palette generator →

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