#8A23A1#8A23A1

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

Color values

HEX#8A23A1
RGBrgb(138, 35, 161)
HSLhsl(289, 64%, 38%)
HSVhsv(289, 78%, 63%)
CMYKcmyk(14.3%, 78.3%, 0%, 36.9%)
CIE-LABlab(36.33, 58.98, -46.21)
CIE-LCHlch(36.33, 74.92, 321.92°)
OKLaboklab(47.73% 0.1514 -0.1298)
OKLCHoklch(47.73% 0.199 319.4)
XYZxyz(17.5145, 9.1794, 34.5606)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A23A1 #3AA123
analogous
#4B23A1 #8A23A1 #A12379
triadic
#8A23A1 #A18A23 #23A18A
tetradic
#8A23A1 #A14B23 #3AA123 #2379A1
square
#8A23A1 #A14B23 #3AA123 #2379A1
split-complementary
#8A23A1 #79A123 #23A14B
monochromatic
#340D3C #5F186F #8A23A1 #B42FD2 #C662DD

Accessibility & contrast

On white

7.41
#8A23A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8A23A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A23A1
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A23A1#FFFFFF#000000##FFFFFF
##8A23A11.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#2D599E
Tritanopia (blue-blind)
#8A3E62
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a23a1;
/* rgb */ color: rgb(138, 35, 161);
/* oklch */ color: oklch(47.7% 0.199 319.4);
Tailwind
colors: {
  custom: {
    50: '#b06abd',
    500: '#8a23a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a23a1;
$custom-light: #b06abd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a23a1",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 161
  },
  "hsl": {
    "h": 289.048,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.47732,
    "c": 0.19942,
    "h": 319.4
  },
  "luminance": 0.09179
}

Semantic roles & 50–950 ramp

primary
#8A23A1
secondary
#70C25E
accent
#E7415F
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A23A1

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

Preview Lab → · Contrast checker → · Palette generator →

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