#E2B228#E2B228

#E2B228 is a light, vivid orange. Relative luminance 0.482; OKLCH L 78.6% C 0.151 H 87.5°. Best body text is #000000 at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#E2B228
RGBrgb(226, 178, 40)
HSLhsl(45, 76%, 52%)
HSVhsv(45, 82%, 89%)
CMYKcmyk(0%, 21.2%, 82.3%, 11.4%)
CIE-LABlab(74.93, 5.32, 70.33)
CIE-LCHlch(74.93, 70.53, 85.67°)
OKLaboklab(78.59% 0.0065 0.1508)
OKLCHoklch(78.59% 0.151 87.5)
XYZxyz(47.6705, 48.1661, 8.7933)
Luminance0.4816 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2B228 #2858E2
analogous
#E25528 #E2B228 #B5E228
triadic
#E2B228 #28E2B2 #B228E2
tetradic
#E2B228 #28E255 #2858E2 #E228B5
square
#E2B228 #28E255 #2858E2 #E228B5
split-complementary
#E2B228 #28B5E2 #5528E2
monochromatic
#7F6211 #B48C18 #E2B228 #E9C55E #F1D994

Accessibility & contrast

On white

1.98
#E2B228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.63
#E2B228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2B228
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2B228#FFFFFF#000000##000000
##E2B2281.001.9810.6310.63
#FFFFFF1.981.0021.0021.00
#00000010.6321.001.001.00
##00000010.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B100
Deuteranopia (green-blind)
#D4BE31
Tritanopia (blue-blind)
#F5A199
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #e2b228;
/* rgb */ color: rgb(226, 178, 40);
/* oklch */ color: oklch(78.6% 0.151 87.5);
Tailwind
colors: {
  custom: {
    50: '#f0c86f',
    500: '#e2b228',
    950: '#000000',
  },
}
SCSS
$custom: #e2b228;
$custom-light: #f0c86f;
$custom-dark: #000000;
JSON
{
  "hex": "#e2b228",
  "rgb": {
    "r": 226,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 44.516,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.78587,
    "c": 0.15093,
    "h": 87.5
  },
  "luminance": 0.48163
}

Semantic roles & 50–950 ramp

primary
#E2B228
secondary
#8A9FDC
accent
#66F335
background
#FFFCF7
surface
#FFF8ED
border
#D7D1C8
text
#181308
muted
#86827B

Preview Lab

Preview with #E2B228

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

Preview Lab → · Contrast checker → · Palette generator →

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