#E2CF31#E2CF31

#E2CF31 is a very light, vivid yellow. Relative luminance 0.610; OKLCH L 84.5% C 0.165 H 102.0°. Best body text is #000000 at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#E2CF31
RGBrgb(226, 207, 49)
HSLhsl(54, 75%, 54%)
HSVhsv(54, 78%, 89%)
CMYKcmyk(0%, 8.4%, 78.3%, 11.4%)
CIE-LABlab(82.39, -9.38, 74.21)
CIE-LCHlch(82.39, 74.80, 97.20°)
OKLaboklab(84.5% -0.0343 0.161)
OKLCHoklch(84.5% 0.165 102)
XYZxyz(54.2338, 61.0186, 11.8262)
Luminance0.6102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2CF31 #3144E2
analogous
#E27731 #E2CF31 #9DE231
triadic
#E2CF31 #31E2CF #CF31E2
tetradic
#E2CF31 #31E277 #3144E2 #E2319D
square
#E2CF31 #31E277 #3144E2 #E2319D
split-complementary
#E2CF31 #319DE2 #7731E2
monochromatic
#867913 #BBAA1A #E2CF31 #EADC67 #F1E89C

Accessibility & contrast

On white

1.59
#E2CF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.20
#E2CF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2CF31
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2CF31#FFFFFF#000000##000000
##E2CF311.001.5913.2013.20
#FFFFFF1.591.0021.0021.00
#00000013.2021.001.001.00
##00000013.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3C800
Deuteranopia (green-blind)
#E8D03E
Tritanopia (blue-blind)
#F4C0B2
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #e2cf31;
/* rgb */ color: rgb(226, 207, 49);
/* oklch */ color: oklch(84.5% 0.165 102.0);
Tailwind
colors: {
  custom: {
    50: '#f0dd77',
    500: '#e2cf31',
    950: '#000000',
  },
}
SCSS
$custom: #e2cf31;
$custom-light: #f0dd77;
$custom-dark: #000000;
JSON
{
  "hex": "#e2cf31",
  "rgb": {
    "r": 226,
    "g": 207,
    "b": 49
  },
  "hsl": {
    "h": 53.559,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.84499,
    "c": 0.16463,
    "h": 102
  },
  "luminance": 0.61016
}

Semantic roles & 50–950 ramp

primary
#E2CF31
secondary
#2B368C
accent
#4AF236
background
#FFFEFB
surface
#FFFCF1
border
#D7D5CB
text
#17150A
muted
#85847D

Preview Lab

Preview with #E2CF31

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

Preview Lab → · Contrast checker → · Palette generator →

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