#8A23A0#8A23A0

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

Color values

HEX#8A23A0
RGBrgb(138, 35, 160)
HSLhsl(289, 64%, 38%)
HSVhsv(289, 78%, 63%)
CMYKcmyk(13.8%, 78.1%, 0%, 37.3%)
CIE-LABlab(36.26, 58.79, -45.71)
CIE-LCHlch(36.26, 74.47, 322.13°)
OKLaboklab(47.66% 0.1515 -0.1283)
OKLCHoklch(47.66% 0.199 319.7)
XYZxyz(17.4266, 9.1443, 34.0980)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A23A0 #39A023
analogous
#4B23A0 #8A23A0 #A02377
triadic
#8A23A0 #A08A23 #23A08A
tetradic
#8A23A0 #A04B23 #39A023 #2377A0
square
#8A23A0 #A04B23 #39A023 #2377A0
split-complementary
#8A23A0 #77A023 #23A04B
monochromatic
#330D3C #5F186E #8A23A0 #B52FD1 #C761DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A23A0#FFFFFF#000000##FFFFFF
##8A23A01.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)
#004FA3
Deuteranopia (green-blind)
#2E599D
Tritanopia (blue-blind)
#8A3E61
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a23a0;
/* rgb */ color: rgb(138, 35, 160);
/* oklch */ color: oklch(47.7% 0.199 319.7);
Tailwind
colors: {
  custom: {
    50: '#b06abd',
    500: '#8a23a0',
    950: '#000000',
  },
}
SCSS
$custom: #8a23a0;
$custom-light: #b06abd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a23a0",
  "rgb": {
    "r": 138,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 289.44,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47663,
    "c": 0.19857,
    "h": 319.7
  },
  "luminance": 0.09143
}

Semantic roles & 50–950 ramp

primary
#8A23A0
secondary
#6FC15D
accent
#E7415E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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