#8B229D#8B229D

#8B229D is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.5% C 0.197 H 321.2°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#8B229D
RGBrgb(139, 34, 157)
HSLhsl(291, 64%, 37%)
HSVhsv(291, 78%, 62%)
CMYKcmyk(11.5%, 78.3%, 0%, 38.4%)
CIE-LABlab(36.12, 58.75, -44.12)
CIE-LCHlch(36.12, 73.47, 323.09°)
OKLaboklab(47.53% 0.1539 -0.1236)
OKLCHoklch(47.53% 0.197 321.2)
XYZxyz(17.3046, 9.0683, 32.7306)
Luminance0.0907 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B229D #349D22
analogous
#4E229D #8B229D #9D2271
triadic
#8B229D #9D8B22 #229D8B
tetradic
#8B229D #9D4E22 #349D22 #22719D
square
#8B229D #9D4E22 #349D22 #22719D
split-complementary
#8B229D #719D22 #229D4E
monochromatic
#320C38 #5E176B #8B229D #B82DCF #C95DDC

Accessibility & contrast

On white

7.46
#8B229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8B229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B229D
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B229D#FFFFFF#000000##FFFFFF
##8B229D1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#32599A
Tritanopia (blue-blind)
#8C3B5F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8b229d;
/* rgb */ color: rgb(139, 34, 157);
/* oklch */ color: oklch(47.5% 0.197 321.2);
Tailwind
colors: {
  custom: {
    50: '#b16aba',
    500: '#8b229d',
    950: '#000000',
  },
}
SCSS
$custom: #8b229d;
$custom-light: #b16aba;
$custom-dark: #000000;
JSON
{
  "hex": "#8b229d",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 291.22,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47529,
    "c": 0.19743,
    "h": 321.2
  },
  "luminance": 0.09067
}

Semantic roles & 50–950 ramp

primary
#8B229D
secondary
#69C15A
accent
#E74059
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8B229D

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

Preview Lab → · Contrast checker → · Palette generator →

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