#E2BA2F#E2BA2F

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

Color values

HEX#E2BA2F
RGBrgb(226, 186, 47)
HSLhsl(47, 76%, 54%)
HSVhsv(47, 79%, 89%)
CMYKcmyk(0%, 17.7%, 79.2%, 11.4%)
CIE-LABlab(76.98, 1.35, 70.00)
CIE-LCHlch(76.98, 70.01, 88.90°)
OKLaboklab(80.21% -0.0042 0.1516)
OKLCHoklch(80.21% 0.152 91.6)
XYZxyz(49.4390, 51.4949, 10.0243)
Luminance0.5149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2BA2F #2F57E2
analogous
#E2602F #E2BA2F #B0E22F
triadic
#E2BA2F #2FE2BA #BA2FE2
tetradic
#E2BA2F #2FE260 #2F57E2 #E22FB0
square
#E2BA2F #2FE260 #2F57E2 #E22FB0
split-complementary
#E2BA2F #2FB0E2 #602FE2
monochromatic
#846B12 #BA961A #E2BA2F #E9CC65 #F1DE9A

Accessibility & contrast

On white

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

On black

11.30
#E2BA2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2BA2F
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2BA2F#FFFFFF#000000##000000
##E2BA2F1.001.8611.3011.30
#FFFFFF1.861.0021.0021.00
#00000011.3021.001.001.00
##00000011.3021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e2ba2f;
/* rgb */ color: rgb(226, 186, 47);
/* oklch */ color: oklch(80.2% 0.152 91.6);
Tailwind
colors: {
  custom: {
    50: '#f0ce73',
    500: '#e2ba2f',
    950: '#000000',
  },
}
SCSS
$custom: #e2ba2f;
$custom-light: #f0ce73;
$custom-dark: #000000;
JSON
{
  "hex": "#e2ba2f",
  "rgb": {
    "r": 226,
    "g": 186,
    "b": 47
  },
  "hsl": {
    "h": 46.592,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.80211,
    "c": 0.15161,
    "h": 91.6
  },
  "luminance": 0.51492
}

Semantic roles & 50–950 ramp

primary
#E2BA2F
secondary
#2B408A
accent
#60F236
background
#FFFEFB
surface
#FFFAF1
border
#D7D3CB
text
#181309
muted
#86837D

Preview Lab

Preview with #E2BA2F

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

Preview Lab → · Contrast checker → · Palette generator →

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