#8A23A6#8A23A6

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

Color values

HEX#8A23A6
RGBrgb(138, 35, 166)
HSLhsl(287, 65%, 39%)
HSVhsv(287, 79%, 65%)
CMYKcmyk(16.9%, 78.9%, 0%, 34.9%)
CIE-LABlab(36.67, 59.93, -48.67)
CIE-LCHlch(36.67, 77.20, 320.92°)
OKLaboklab(48.08% 0.1507 -0.137)
OKLCHoklch(48.08% 0.204 317.7)
XYZxyz(17.9642, 9.3593, 36.9293)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A23A6 #3FA623
analogous
#4923A6 #8A23A6 #A62380
triadic
#8A23A6 #A68A23 #23A68A
tetradic
#8A23A6 #A64923 #3FA623 #2380A6
square
#8A23A6 #A64923 #3FA623 #2380A6
split-complementary
#8A23A6 #80A623 #23A649
monochromatic
#360E41 #601873 #8A23A6 #B132D4 #C565DF

Accessibility & contrast

On white

7.31
#8A23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A23A6
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A23A6#FFFFFF#000000##FFFFFF
##8A23A61.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#2859A3
Tritanopia (blue-blind)
#894064
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a23a6;
/* rgb */ color: rgb(138, 35, 166);
/* oklch */ color: oklch(48.1% 0.204 317.7);
Tailwind
colors: {
  custom: {
    50: '#b06bc1',
    500: '#8a23a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a23a6;
$custom-light: #b06bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a23a6",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 287.176,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48079,
    "c": 0.20367,
    "h": 317.7
  },
  "luminance": 0.09359
}

Semantic roles & 50–950 ramp

primary
#8A23A6
secondary
#76C461
accent
#E84064
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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