#E2C631#E2C631

#E2C631 is a very light, vivid yellow. Relative luminance 0.568; OKLCH L 82.6% C 0.158 H 97.8°. Best body text is #000000 at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#E2C631
RGBrgb(226, 198, 49)
HSLhsl(51, 75%, 54%)
HSVhsv(51, 78%, 89%)
CMYKcmyk(0%, 12.4%, 78.3%, 11.4%)
CIE-LABlab(80.06, -4.80, 72.13)
CIE-LCHlch(80.06, 72.29, 93.80°)
OKLaboklab(82.65% -0.0214 0.1565)
OKLCHoklch(82.65% 0.158 97.8)
XYZxyz(52.1152, 56.7814, 11.1200)
Luminance0.5678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C631 #314DE2
analogous
#E26E31 #E2C631 #A6E231
triadic
#E2C631 #31E2C6 #C631E2
tetradic
#E2C631 #31E26E #314DE2 #E231A6
square
#E2C631 #31E26E #314DE2 #E231A6
split-complementary
#E2C631 #31A6E2 #6E31E2
monochromatic
#867413 #BBA21A #E2C631 #EAD567 #F1E49C

Accessibility & contrast

On white

1.70
#E2C631 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.36
#E2C631 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C631
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C631#FFFFFF#000000##000000
##E2C6311.001.7012.3612.36
#FFFFFF1.701.0021.0021.00
#00000012.3621.001.001.00
##00000012.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC107
Deuteranopia (green-blind)
#E2CB3C
Tritanopia (blue-blind)
#F4B6AA
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #e2c631;
/* rgb */ color: rgb(226, 198, 49);
/* oklch */ color: oklch(82.6% 0.158 97.8);
Tailwind
colors: {
  custom: {
    50: '#f0d676',
    500: '#e2c631',
    950: '#000000',
  },
}
SCSS
$custom: #e2c631;
$custom-light: #f0d676;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c631",
  "rgb": {
    "r": 226,
    "g": 198,
    "b": 49
  },
  "hsl": {
    "h": 50.508,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.82648,
    "c": 0.158,
    "h": 97.8
  },
  "luminance": 0.56779
}

Semantic roles & 50–950 ramp

primary
#E2C631
secondary
#2B3B8C
accent
#54F236
background
#FFFEFB
surface
#FFFBF1
border
#D7D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #E2C631

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

Preview Lab → · Contrast checker → · Palette generator →

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