#E2C931#E2C931

#E2C931 is a very light, vivid yellow. Relative luminance 0.582; OKLCH L 83.3% C 0.160 H 99.3°. Best body text is #000000 at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#E2C931
RGBrgb(226, 201, 49)
HSLhsl(52, 75%, 54%)
HSVhsv(52, 78%, 89%)
CMYKcmyk(0%, 11.1%, 78.3%, 11.4%)
CIE-LABlab(80.83, -6.33, 72.82)
CIE-LCHlch(80.83, 73.10, 94.97°)
OKLaboklab(83.26% -0.0258 0.158)
OKLCHoklch(83.26% 0.16 99.3)
XYZxyz(52.8078, 58.1665, 11.3508)
Luminance0.5816 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C931 #314AE2
analogous
#E27131 #E2C931 #A3E231
triadic
#E2C931 #31E2C9 #C931E2
tetradic
#E2C931 #31E271 #314AE2 #E231A3
square
#E2C931 #31E271 #314AE2 #E231A3
split-complementary
#E2C931 #31A3E2 #7131E2
monochromatic
#867613 #BBA51A #E2C931 #EAD767 #F1E59C

Accessibility & contrast

On white

1.66
#E2C931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.63
#E2C931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C931
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C931#FFFFFF#000000##000000
##E2C9311.001.6612.6312.63
#FFFFFF1.661.0021.0021.00
#00000012.6321.001.001.00
##00000012.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC404
Deuteranopia (green-blind)
#E4CD3C
Tritanopia (blue-blind)
#F4BAAD
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #e2c931;
/* rgb */ color: rgb(226, 201, 49);
/* oklch */ color: oklch(83.3% 0.160 99.3);
Tailwind
colors: {
  custom: {
    50: '#f0d976',
    500: '#e2c931',
    950: '#000000',
  },
}
SCSS
$custom: #e2c931;
$custom-light: #f0d976;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c931",
  "rgb": {
    "r": 226,
    "g": 201,
    "b": 49
  },
  "hsl": {
    "h": 51.525,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.83263,
    "c": 0.16012,
    "h": 99.3
  },
  "luminance": 0.58164
}

Semantic roles & 50–950 ramp

primary
#E2C931
secondary
#2B398C
accent
#50F236
background
#FFFEFB
surface
#FFFBF1
border
#D7D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #E2C931

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

Preview Lab → · Contrast checker → · Palette generator →

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