#8B229B#8B229B

#8B229B is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.196 H 321.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#8B229B
RGBrgb(139, 34, 155)
HSLhsl(292, 64%, 37%)
HSVhsv(292, 78%, 61%)
CMYKcmyk(10.3%, 78.1%, 0%, 39.2%)
CIE-LABlab(35.99, 58.38, -43.12)
CIE-LCHlch(35.99, 72.58, 323.55°)
OKLaboklab(47.4% 0.1541 -0.1207)
OKLCHoklch(47.4% 0.196 321.9)
XYZxyz(17.1353, 9.0006, 31.8387)
Luminance0.0900 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B229B #329B22
analogous
#4F229B #8B229B #9B226F
triadic
#8B229B #9B8B22 #229B8B
tetradic
#8B229B #9B4F22 #329B22 #226F9B
square
#8B229B #9B4F22 #329B22 #226F9B
split-complementary
#8B229B #6F9B22 #229B4F
monochromatic
#310C37 #5E1769 #8B229B #B82DCD #CA5CDB

Accessibility & contrast

On white

7.50
#8B229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8B229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B229B
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B229B#FFFFFF#000000##FFFFFF
##8B229B1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#345898
Tritanopia (blue-blind)
#8D3B5E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8b229b;
/* rgb */ color: rgb(139, 34, 155);
/* oklch */ color: oklch(47.4% 0.196 321.9);
Tailwind
colors: {
  custom: {
    50: '#b16ab9',
    500: '#8b229b',
    950: '#000000',
  },
}
SCSS
$custom: #8b229b;
$custom-light: #b16ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b229b",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 292.066,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47396,
    "c": 0.19577,
    "h": 321.9
  },
  "luminance": 0.09
}

Semantic roles & 50–950 ramp

primary
#8B229B
secondary
#67C059
accent
#E74157
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B229B

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

Preview Lab → · Contrast checker → · Palette generator →

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