#8B23A6#8B23A6

#8B23A6 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.2% C 0.204 H 318.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8B23A6
RGBrgb(139, 35, 166)
HSLhsl(288, 65%, 39%)
HSVhsv(288, 79%, 65%)
CMYKcmyk(16.3%, 78.9%, 0%, 34.9%)
CIE-LABlab(36.83, 60.12, -48.40)
CIE-LCHlch(36.83, 77.18, 321.16°)
OKLaboklab(48.22% 0.1519 -0.1362)
OKLCHoklch(48.22% 0.204 318.1)
XYZxyz(18.1305, 9.4451, 36.9371)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B23A6 #3EA623
analogous
#4A23A6 #8B23A6 #A6237F
triadic
#8B23A6 #A68B23 #23A68B
tetradic
#8B23A6 #A64A23 #3EA623 #237FA6
square
#8B23A6 #A64A23 #3EA623 #237FA6
split-complementary
#8B23A6 #7FA623 #23A64A
monochromatic
#360E41 #611873 #8B23A6 #B332D4 #C565DF

Accessibility & contrast

On white

7.27
#8B23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8B23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B23A6
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B23A6#FFFFFF#000000##FFFFFF
##8B23A61.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#295AA3
Tritanopia (blue-blind)
#8A4064
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8b23a6;
/* rgb */ color: rgb(139, 35, 166);
/* oklch */ color: oklch(48.2% 0.204 318.1);
Tailwind
colors: {
  custom: {
    50: '#b16bc1',
    500: '#8b23a6',
    950: '#000000',
  },
}
SCSS
$custom: #8b23a6;
$custom-light: #b16bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b23a6",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 287.634,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48224,
    "c": 0.20404,
    "h": 318.1
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

primary
#8B23A6
secondary
#75C461
accent
#E84062
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8B23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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