#E2C04E#E2C04E

#E2C04E is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.6% C 0.136 H 92.4°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#E2C04E
RGBrgb(226, 192, 78)
HSLhsl(46, 72%, 60%)
HSVhsv(46, 65%, 89%)
CMYKcmyk(0%, 15%, 65.5%, 11.4%)
CIE-LABlab(78.71, -0.35, 60.01)
CIE-LCHlch(78.71, 60.01, 90.34°)
OKLaboklab(81.64% -0.0057 0.136)
OKLCHoklch(81.64% 0.136 92.4)
XYZxyz(51.5914, 54.4209, 14.9931)
Luminance0.5442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C04E #4E70E2
analogous
#E2764E #E2C04E #BAE24E
triadic
#E2C04E #4EE2C0 #C04EE2
tetradic
#E2C04E #4EE276 #4E70E2 #E24EBA
square
#E2C04E #4EE276 #4E70E2 #E24EBA
split-complementary
#E2C04E #4EBAE2 #764EE2
monochromatic
#9C7E1A #D1A922 #E2C04E #EBD383 #F3E5B7

Accessibility & contrast

On white

1.77
#E2C04E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.88
#E2C04E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C04E
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C04E#FFFFFF#000000##000000
##E2C04E1.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD40
Deuteranopia (green-blind)
#DCC753
Tritanopia (blue-blind)
#F4B1A8
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #e2c04e;
/* rgb */ color: rgb(226, 192, 78);
/* oklch */ color: oklch(81.6% 0.136 92.4);
Tailwind
colors: {
  custom: {
    50: '#efd285',
    500: '#e2c04e',
    950: '#000000',
  },
}
SCSS
$custom: #e2c04e;
$custom-light: #efd285;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c04e",
  "rgb": {
    "r": 226,
    "g": 192,
    "b": 78
  },
  "hsl": {
    "h": 46.216,
    "s": 71.845,
    "l": 59.608
  },
  "oklch": {
    "l": 0.81641,
    "c": 0.13616,
    "h": 92.4
  },
  "luminance": 0.54418
}

Semantic roles & 50–950 ramp

primary
#E2C04E
secondary
#354D9F
accent
#63EF39
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #E2C04E

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

Preview Lab → · Contrast checker → · Palette generator →

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