#E2D731#E2D731

#E2D731 is a very light, vivid yellow. Relative luminance 0.650; OKLCH L 86.2% C 0.171 H 105.4°. Best body text is #000000 at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#E2D731
RGBrgb(226, 215, 49)
HSLhsl(56, 75%, 54%)
HSVhsv(56, 78%, 89%)
CMYKcmyk(0%, 4.9%, 78.3%, 11.4%)
CIE-LABlab(84.48, -13.39, 76.07)
CIE-LCHlch(84.48, 77.24, 99.98°)
OKLaboklab(86.16% -0.0456 0.165)
OKLCHoklch(86.16% 0.171 105.4)
XYZxyz(56.2213, 64.9936, 12.4887)
Luminance0.6499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2D731 #313CE2
analogous
#E27F31 #E2D731 #95E231
triadic
#E2D731 #31E2D7 #D731E2
tetradic
#E2D731 #31E27F #313CE2 #E23195
square
#E2D731 #31E27F #313CE2 #E23195
split-complementary
#E2D731 #3195E2 #7F31E2
monochromatic
#867F13 #BBB11A #E2D731 #EAE167 #F1EC9C

Accessibility & contrast

On white

1.50
#E2D731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.00
#E2D731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2D731
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2D731#FFFFFF#000000##000000
##E2D7311.001.5014.0014.00
#FFFFFF1.501.0021.0021.00
#00000014.0021.001.001.00
##00000014.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EACF00
Deuteranopia (green-blind)
#EED63F
Tritanopia (blue-blind)
#F3C8B9
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #e2d731;
/* rgb */ color: rgb(226, 215, 49);
/* oklch */ color: oklch(86.2% 0.171 105.4);
Tailwind
colors: {
  custom: {
    50: '#efe378',
    500: '#e2d731',
    950: '#000000',
  },
}
SCSS
$custom: #e2d731;
$custom-light: #efe378;
$custom-dark: #000000;
JSON
{
  "hex": "#e2d731",
  "rgb": {
    "r": 226,
    "g": 215,
    "b": 49
  },
  "hsl": {
    "h": 56.271,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.86163,
    "c": 0.17119,
    "h": 105.4
  },
  "luminance": 0.64991
}

Semantic roles & 50–950 ramp

primary
#E2D731
secondary
#2B318C
accent
#42F236
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #E2D731

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

Preview Lab → · Contrast checker → · Palette generator →

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