#E2C04C#E2C04C

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

Color values

HEX#E2C04C
RGBrgb(226, 192, 76)
HSLhsl(46, 72%, 59%)
HSVhsv(46, 66%, 89%)
CMYKcmyk(0%, 15%, 66.4%, 11.4%)
CIE-LABlab(78.69, -0.47, 60.84)
CIE-LCHlch(78.69, 60.84, 90.44°)
OKLaboklab(81.62% -0.0063 0.1375)
OKLCHoklch(81.62% 0.138 92.6)
XYZxyz(51.5208, 54.3927, 14.6212)
Luminance0.5439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C04C #4C6EE2
analogous
#E2754C #E2C04C #B9E24C
triadic
#E2C04C #4CE2C0 #C04CE2
tetradic
#E2C04C #4CE275 #4C6EE2 #E24CB9
square
#E2C04C #4CE275 #4C6EE2 #E24CB9
split-complementary
#E2C04C #4CB9E2 #754CE2
monochromatic
#9B7D19 #CFA822 #E2C04C #EBD381 #F3E5B5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##E2C04C#FFFFFF#000000##000000
##E2C04C1.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)
#D4BD3E
Deuteranopia (green-blind)
#DCC752
Tritanopia (blue-blind)
#F4B1A8
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #e2c04c;
/* rgb */ color: rgb(226, 192, 76);
/* oklch */ color: oklch(81.6% 0.138 92.6);
Tailwind
colors: {
  custom: {
    50: '#efd283',
    500: '#e2c04c',
    950: '#000000',
  },
}
SCSS
$custom: #e2c04c;
$custom-light: #efd283;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c04c",
  "rgb": {
    "r": 226,
    "g": 192,
    "b": 76
  },
  "hsl": {
    "h": 46.4,
    "s": 72.115,
    "l": 59.216
  },
  "oklch": {
    "l": 0.81622,
    "c": 0.13763,
    "h": 92.6
  },
  "luminance": 0.5439
}

Semantic roles & 50–950 ramp

primary
#E2C04C
secondary
#344C9E
accent
#62EF39
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #E2C04C

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

Preview Lab → · Contrast checker → · Palette generator →

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