#E2C04D#E2C04D

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

Color values

HEX#E2C04D
RGBrgb(226, 192, 77)
HSLhsl(46, 72%, 59%)
HSVhsv(46, 66%, 89%)
CMYKcmyk(0%, 15%, 65.9%, 11.4%)
CIE-LABlab(78.70, -0.41, 60.43)
CIE-LCHlch(78.70, 60.43, 90.39°)
OKLaboklab(81.63% -0.006 0.1368)
OKLCHoklch(81.63% 0.137 92.5)
XYZxyz(51.5558, 54.4067, 14.8057)
Luminance0.5440 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C04D #4D6FE2
analogous
#E2764D #E2C04D #B9E24D
triadic
#E2C04D #4DE2C0 #C04DE2
tetradic
#E2C04D #4DE276 #4D6FE2 #E24DB9
square
#E2C04D #4DE276 #4D6FE2 #E24DB9
split-complementary
#E2C04D #4DB9E2 #764DE2
monochromatic
#9B7E19 #D0A822 #E2C04D #EBD382 #F3E5B6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##E2C04D#FFFFFF#000000##000000
##E2C04D1.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)
#D4BD3F
Deuteranopia (green-blind)
#DCC753
Tritanopia (blue-blind)
#F4B1A8
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #e2c04d;
/* rgb */ color: rgb(226, 192, 77);
/* oklch */ color: oklch(81.6% 0.137 92.5);
Tailwind
colors: {
  custom: {
    50: '#efd284',
    500: '#e2c04d',
    950: '#000000',
  },
}
SCSS
$custom: #e2c04d;
$custom-light: #efd284;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c04d",
  "rgb": {
    "r": 226,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 46.309,
    "s": 71.981,
    "l": 59.412
  },
  "oklch": {
    "l": 0.81631,
    "c": 0.1369,
    "h": 92.5
  },
  "luminance": 0.54404
}

Semantic roles & 50–950 ramp

primary
#E2C04D
secondary
#344D9F
accent
#63EF39
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #E2C04D

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

Preview Lab → · Contrast checker → · Palette generator →

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