#E2BA3F#E2BA3F

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

Color values

HEX#E2BA3F
RGBrgb(226, 186, 63)
HSLhsl(45, 74%, 57%)
HSVhsv(45, 72%, 89%)
CMYKcmyk(0%, 17.7%, 72.1%, 11.4%)
CIE-LABlab(77.07, 1.99, 64.45)
CIE-LCHlch(77.07, 64.48, 88.24°)
OKLaboklab(80.31% -0.0007 0.1429)
OKLCHoklch(80.31% 0.143 90.3)
XYZxyz(49.8229, 51.6485, 12.0466)
Luminance0.5164 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2BA3F #3F67E2
analogous
#E2693F #E2BA3F #B9E23F
triadic
#E2BA3F #3FE2BA #BA3FE2
tetradic
#E2BA3F #3FE269 #3F67E2 #E23FB9
square
#E2BA3F #3FE269 #3F67E2 #E23FB9
split-complementary
#E2BA3F #3FB9E2 #693FE2
monochromatic
#917316 #C69D1E #E2BA3F #EACD74 #F2E0A9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##E2BA3F#FFFFFF#000000##000000
##E2BA3F1.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)
#CFB82D
Deuteranopia (green-blind)
#D9C345
Tritanopia (blue-blind)
#F4ABA1
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #e2ba3f;
/* rgb */ color: rgb(226, 186, 63);
/* oklch */ color: oklch(80.3% 0.143 90.3);
Tailwind
colors: {
  custom: {
    50: '#efce7c',
    500: '#e2ba3f',
    950: '#000000',
  },
}
SCSS
$custom: #e2ba3f;
$custom-light: #efce7c;
$custom-dark: #000000;
JSON
{
  "hex": "#e2ba3f",
  "rgb": {
    "r": 226,
    "g": 186,
    "b": 63
  },
  "hsl": {
    "h": 45.276,
    "s": 73.756,
    "l": 56.667
  },
  "oklch": {
    "l": 0.80313,
    "c": 0.14288,
    "h": 90.3
  },
  "luminance": 0.51645
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #E2BA3F

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

Preview Lab → · Contrast checker → · Palette generator →

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