#E2BA2B#E2BA2B

#E2BA2B is a light, vivid yellow. Relative luminance 0.515; OKLCH L 80.2% C 0.153 H 91.8°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#E2BA2B
RGBrgb(226, 186, 43)
HSLhsl(47, 76%, 53%)
HSVhsv(47, 81%, 89%)
CMYKcmyk(0%, 17.7%, 81%, 11.4%)
CIE-LABlab(76.96, 1.22, 71.20)
CIE-LCHlch(76.96, 71.21, 89.02°)
OKLaboklab(80.19% -0.0049 0.1533)
OKLCHoklch(80.19% 0.153 91.8)
XYZxyz(49.3619, 51.4641, 9.6187)
Luminance0.5146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2BA2B #2B53E2
analogous
#E25E2B #E2BA2B #AFE22B
triadic
#E2BA2B #2BE2BA #BA2BE2
tetradic
#E2BA2B #2BE25E #2B53E2 #E22BAF
square
#E2BA2B #2BE25E #2B53E2 #E22BAF
split-complementary
#E2BA2B #2BAFE2 #5E2BE2
monochromatic
#816912 #B79419 #E2BA2B #E9CC61 #F1DD97

Accessibility & contrast

On white

1.86
#E2BA2B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.29
#E2BA2B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2BA2B
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2BA2B#FFFFFF#000000##000000
##E2BA2B1.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B700
Deuteranopia (green-blind)
#D9C335
Tritanopia (blue-blind)
#F5AAA0
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #e2ba2b;
/* rgb */ color: rgb(226, 186, 43);
/* oklch */ color: oklch(80.2% 0.153 91.8);
Tailwind
colors: {
  custom: {
    50: '#f0ce72',
    500: '#e2ba2b',
    950: '#000000',
  },
}
SCSS
$custom: #e2ba2b;
$custom-light: #f0ce72;
$custom-dark: #000000;
JSON
{
  "hex": "#e2ba2b",
  "rgb": {
    "r": 226,
    "g": 186,
    "b": 43
  },
  "hsl": {
    "h": 46.885,
    "s": 75.934,
    "l": 52.745
  },
  "oklch": {
    "l": 0.80191,
    "c": 0.15341,
    "h": 91.8
  },
  "luminance": 0.51461
}

Semantic roles & 50–950 ramp

primary
#E2BA2B
secondary
#2A3E88
accent
#5FF335
background
#FFFEFB
surface
#FFFAF1
border
#D7D3CB
text
#181309
muted
#86837D

Preview Lab

Preview with #E2BA2B

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

Preview Lab → · Contrast checker → · Palette generator →

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