#8B229F#8B229F

#8B229F is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.7% C 0.199 H 320.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#8B229F
RGBrgb(139, 34, 159)
HSLhsl(290, 65%, 38%)
HSVhsv(290, 79%, 62%)
CMYKcmyk(12.6%, 78.6%, 0%, 37.6%)
CIE-LABlab(36.25, 59.12, -45.12)
CIE-LCHlch(36.25, 74.37, 322.65°)
OKLaboklab(47.66% 0.1537 -0.1266)
OKLCHoklch(47.66% 0.199 320.5)
XYZxyz(17.4767, 9.1372, 33.6373)
Luminance0.0914 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B229F #369F22
analogous
#4C229F #8B229F #9F2274
triadic
#8B229F #9F8B22 #229F8B
tetradic
#8B229F #9F4C22 #369F22 #22749F
square
#8B229F #9F4C22 #369F22 #22749F
split-complementary
#8B229F #749F22 #229F4C
monochromatic
#330C3A #5F176D #8B229F #B72DD1 #C95FDD

Accessibility & contrast

On white

7.43
#8B229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8B229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B229F
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B229F#FFFFFF#000000##FFFFFF
##8B229F1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#30599C
Tritanopia (blue-blind)
#8C3C60
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8b229f;
/* rgb */ color: rgb(139, 34, 159);
/* oklch */ color: oklch(47.7% 0.199 320.5);
Tailwind
colors: {
  custom: {
    50: '#b16abc',
    500: '#8b229f',
    950: '#000000',
  },
}
SCSS
$custom: #8b229f;
$custom-light: #b16abc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b229f",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 290.4,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47664,
    "c": 0.1991,
    "h": 320.5
  },
  "luminance": 0.09136
}

Semantic roles & 50–950 ramp

primary
#8B229F
secondary
#6CC15B
accent
#E8405B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8B229F

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

Preview Lab → · Contrast checker → · Palette generator →

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