#E2D931#E2D931

#E2D931 is a very light, vivid yellow. Relative luminance 0.660; OKLCH L 86.6% C 0.173 H 106.2°. Best body text is #000000 at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#E2D931
RGBrgb(226, 217, 49)
HSLhsl(57, 75%, 54%)
HSVhsv(57, 78%, 89%)
CMYKcmyk(0%, 4%, 78.3%, 11.4%)
CIE-LABlab(85.01, -14.38, 76.53)
CIE-LCHlch(85.01, 77.87, 100.64°)
OKLaboklab(86.58% -0.0484 0.166)
OKLCHoklch(86.58% 0.173 106.2)
XYZxyz(56.7337, 66.0184, 12.6595)
Luminance0.6602 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2D931 #313AE2
analogous
#E28131 #E2D931 #93E231
triadic
#E2D931 #31E2D9 #D931E2
tetradic
#E2D931 #31E281 #313AE2 #E23193
square
#E2D931 #31E281 #313AE2 #E23193
split-complementary
#E2D931 #3193E2 #8131E2
monochromatic
#868013 #BBB31A #E2D931 #EAE367 #F1ED9C

Accessibility & contrast

On white

1.48
#E2D931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.20
#E2D931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2D931
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2D931#FFFFFF#000000##000000
##E2D9311.001.4814.2014.20
#FFFFFF1.481.0021.0021.00
#00000014.2021.001.001.00
##00000014.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD100
Deuteranopia (green-blind)
#F0D740
Tritanopia (blue-blind)
#F3CABA
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #e2d931;
/* rgb */ color: rgb(226, 217, 49);
/* oklch */ color: oklch(86.6% 0.173 106.2);
Tailwind
colors: {
  custom: {
    50: '#efe478',
    500: '#e2d931',
    950: '#000000',
  },
}
SCSS
$custom: #e2d931;
$custom-light: #efe478;
$custom-dark: #000000;
JSON
{
  "hex": "#e2d931",
  "rgb": {
    "r": 226,
    "g": 217,
    "b": 49
  },
  "hsl": {
    "h": 56.949,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.86582,
    "c": 0.17291,
    "h": 106.2
  },
  "luminance": 0.66016
}

Semantic roles & 50–950 ramp

primary
#E2D931
secondary
#2B308C
accent
#3FF236
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #E2D931

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

Preview Lab → · Contrast checker → · Palette generator →

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