#8E23A6#8E23A6

#8E23A6 is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.7% C 0.205 H 319.3°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#8E23A6
RGBrgb(142, 35, 166)
HSLhsl(289, 65%, 39%)
HSVhsv(289, 79%, 65%)
CMYKcmyk(14.5%, 78.9%, 0%, 34.9%)
CIE-LABlab(37.31, 60.70, -47.60)
CIE-LCHlch(37.31, 77.14, 321.90°)
OKLaboklab(48.66% 0.1556 -0.1337)
OKLCHoklch(48.66% 0.205 319.3)
XYZxyz(18.6384, 9.7070, 36.9609)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E23A6 #3BA623
analogous
#4D23A6 #8E23A6 #A6237C
triadic
#8E23A6 #A68E23 #23A68E
tetradic
#8E23A6 #A64D23 #3BA623 #237CA6
square
#8E23A6 #A64D23 #3BA623 #237CA6
split-complementary
#8E23A6 #7CA623 #23A64D
monochromatic
#380E41 #631873 #8E23A6 #B632D4 #C865DF

Accessibility & contrast

On white

7.14
#8E23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8E23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E23A6
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E23A6#FFFFFF#000000##FFFFFF
##8E23A61.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#2E5BA3
Tritanopia (blue-blind)
#8E4065
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e23a6;
/* rgb */ color: rgb(142, 35, 166);
/* oklch */ color: oklch(48.7% 0.205 319.3);
Tailwind
colors: {
  custom: {
    50: '#b36bc1',
    500: '#8e23a6',
    950: '#000000',
  },
}
SCSS
$custom: #8e23a6;
$custom-light: #b36bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e23a6",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 289.008,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48661,
    "c": 0.20518,
    "h": 319.3
  },
  "luminance": 0.09706
}

Semantic roles & 50–950 ramp

primary
#8E23A6
secondary
#73C461
accent
#E8405F
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8E23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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