#8B229E#8B229E

#8B229E is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.6% C 0.198 H 320.9°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#8B229E
RGBrgb(139, 34, 158)
HSLhsl(291, 65%, 38%)
HSVhsv(291, 78%, 62%)
CMYKcmyk(12%, 78.5%, 0%, 38%)
CIE-LABlab(36.18, 58.93, -44.62)
CIE-LCHlch(36.18, 73.92, 322.87°)
OKLaboklab(47.6% 0.1538 -0.1251)
OKLCHoklch(47.6% 0.198 320.9)
XYZxyz(17.3903, 9.1026, 33.1821)
Luminance0.0910 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B229E #359E22
analogous
#4D229E #8B229E #9E2273
triadic
#8B229E #9E8B22 #229E8B
tetradic
#8B229E #9E4D22 #359E22 #22739E
square
#8B229E #9E4D22 #359E22 #22739E
split-complementary
#8B229E #739E22 #229E4D
monochromatic
#320C39 #5F176C #8B229E #B72DD0 #C95EDC

Accessibility & contrast

On white

7.45
#8B229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8B229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B229E
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B229E#FFFFFF#000000##FFFFFF
##8B229E1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#31599B
Tritanopia (blue-blind)
#8C3C60
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8b229e;
/* rgb */ color: rgb(139, 34, 158);
/* oklch */ color: oklch(47.6% 0.198 320.9);
Tailwind
colors: {
  custom: {
    50: '#b16abb',
    500: '#8b229e',
    950: '#000000',
  },
}
SCSS
$custom: #8b229e;
$custom-light: #b16abb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b229e",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 290.806,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47597,
    "c": 0.19826,
    "h": 320.9
  },
  "luminance": 0.09102
}

Semantic roles & 50–950 ramp

primary
#8B229E
secondary
#6AC15B
accent
#E8405A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8B229E

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

Preview Lab → · Contrast checker → · Palette generator →

#8B229E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva