#E2C54F#E2C54F

#E2C54F is a very light, vivid yellow. Relative luminance 0.567; OKLCH L 82.7% C 0.139 H 95.3°. Best body text is #000000 at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#E2C54F
RGBrgb(226, 197, 79)
HSLhsl(48, 72%, 60%)
HSVhsv(48, 65%, 89%)
CMYKcmyk(0%, 12.8%, 65%, 11.4%)
CIE-LABlab(79.99, -2.88, 60.95)
CIE-LCHlch(79.99, 61.02, 92.71°)
OKLaboklab(82.66% -0.0129 0.1382)
OKLCHoklch(82.66% 0.139 95.3)
XYZxyz(52.7440, 56.6684, 15.5555)
Luminance0.5667 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C54F #4F6CE2
analogous
#E27B4F #E2C54F #B6E24F
triadic
#E2C54F #4FE2C5 #C54FE2
tetradic
#E2C54F #4FE27B #4F6CE2 #E24FB6
square
#E2C54F #4FE27B #4F6CE2 #E24FB6
split-complementary
#E2C54F #4FB6E2 #7B4FE2
monochromatic
#9D831A #D1AF22 #E2C54F #EBD684 #F3E8B8

Accessibility & contrast

On white

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

On black

12.33
#E2C54F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C54F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C54F#FFFFFF#000000##000000
##E2C54F1.001.7012.3312.33
#FFFFFF1.701.0021.0021.00
#00000012.3321.001.001.00
##00000012.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C141
Deuteranopia (green-blind)
#E0CA55
Tritanopia (blue-blind)
#F3B7AC
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #e2c54f;
/* rgb */ color: rgb(226, 197, 79);
/* oklch */ color: oklch(82.7% 0.139 95.3);
Tailwind
colors: {
  custom: {
    50: '#efd686',
    500: '#e2c54f',
    950: '#000000',
  },
}
SCSS
$custom: #e2c54f;
$custom-light: #efd686;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c54f",
  "rgb": {
    "r": 226,
    "g": 197,
    "b": 79
  },
  "hsl": {
    "h": 48.163,
    "s": 71.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.8266,
    "c": 0.13879,
    "h": 95.3
  },
  "luminance": 0.56666
}

Semantic roles & 50–950 ramp

primary
#E2C54F
secondary
#354AA0
accent
#5DEE39
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #E2C54F

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

Preview Lab → · Contrast checker → · Palette generator →

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