#E2BA40#E2BA40

#E2BA40 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 80.3% C 0.142 H 90.2°. Best body text is #000000 at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#E2BA40
RGBrgb(226, 186, 64)
HSLhsl(45, 74%, 57%)
HSVhsv(45, 72%, 89%)
CMYKcmyk(0%, 17.7%, 71.7%, 11.4%)
CIE-LABlab(77.08, 2.03, 64.07)
CIE-LCHlch(77.08, 64.10, 88.18°)
OKLaboklab(80.32% -0.0005 0.1423)
OKLCHoklch(80.32% 0.142 90.2)
XYZxyz(49.8511, 51.6598, 12.1951)
Luminance0.5166 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2BA40 #4068E2
analogous
#E26940 #E2BA40 #B9E240
triadic
#E2BA40 #40E2BA #BA40E2
tetradic
#E2BA40 #40E269 #4068E2 #E240B9
square
#E2BA40 #40E269 #4068E2 #E240B9
split-complementary
#E2BA40 #40B9E2 #6940E2
monochromatic
#927316 #C79D1E #E2BA40 #EACD75 #F2E0AA

Accessibility & contrast

On white

1.85
#E2BA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.33
#E2BA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2BA40
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2BA40#FFFFFF#000000##000000
##E2BA401.001.8511.3311.33
#FFFFFF1.851.0021.0021.00
#00000011.3321.001.001.00
##00000011.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB82E
Deuteranopia (green-blind)
#D8C346
Tritanopia (blue-blind)
#F4ABA1
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #e2ba40;
/* rgb */ color: rgb(226, 186, 64);
/* oklch */ color: oklch(80.3% 0.142 90.2);
Tailwind
colors: {
  custom: {
    50: '#efce7c',
    500: '#e2ba40',
    950: '#000000',
  },
}
SCSS
$custom: #e2ba40;
$custom-light: #efce7c;
$custom-dark: #000000;
JSON
{
  "hex": "#e2ba40",
  "rgb": {
    "r": 226,
    "g": 186,
    "b": 64
  },
  "hsl": {
    "h": 45.185,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80321,
    "c": 0.14226,
    "h": 90.2
  },
  "luminance": 0.51657
}

Semantic roles & 50–950 ramp

primary
#E2BA40
secondary
#304996
accent
#65F038
background
#FFFEFB
surface
#FFFAF2
border
#D7D3CC
text
#17130A
muted
#85837D

Preview Lab

Preview with #E2BA40

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

Preview Lab → · Contrast checker → · Palette generator →

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