#8B239E#8B239E

#8B239E is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.197 H 320.8°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#8B239E
RGBrgb(139, 35, 158)
HSLhsl(291, 64%, 38%)
HSVhsv(291, 78%, 62%)
CMYKcmyk(12%, 77.8%, 0%, 38%)
CIE-LABlab(36.29, 58.62, -44.44)
CIE-LCHlch(36.29, 73.56, 322.83°)
OKLaboklab(47.68% 0.153 -0.1246)
OKLCHoklch(47.68% 0.197 320.8)
XYZxyz(17.4193, 9.1606, 33.1918)
Luminance0.0916 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B239E #369E23
analogous
#4E239E #8B239E #9E2373
triadic
#8B239E #9E8B23 #239E8B
tetradic
#8B239E #9E4E23 #369E23 #23739E
square
#8B239E #9E4E23 #369E23 #23739E
split-complementary
#8B239E #739E23 #239E4E
monochromatic
#330D3A #5F186C #8B239E #B72ED0 #C960DC

Accessibility & contrast

On white

7.42
#8B239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B239E
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B239E#FFFFFF#000000##FFFFFF
##8B239E1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b239e;
/* rgb */ color: rgb(139, 35, 158);
/* oklch */ color: oklch(47.7% 0.197 320.8);
Tailwind
colors: {
  custom: {
    50: '#b16abb',
    500: '#8b239e',
    950: '#000000',
  },
}
SCSS
$custom: #8b239e;
$custom-light: #b16abb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b239e",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 290.732,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47675,
    "c": 0.19728,
    "h": 320.8
  },
  "luminance": 0.0916
}

Semantic roles & 50–950 ramp

primary
#8B239E
secondary
#6CC15C
accent
#E7415B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8B239E

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

Preview Lab → · Contrast checker → · Palette generator →

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