#8A17B4#8A17B4

#8A17B4 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.3% C 0.225 H 313.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#8A17B4
RGBrgb(138, 23, 180)
HSLhsl(284, 77%, 40%)
HSVhsv(284, 87%, 71%)
CMYKcmyk(23.3%, 87.2%, 0%, 29.4%)
CIE-LABlab(36.58, 65.85, -57.17)
CIE-LCHlch(36.58, 87.21, 319.03°)
OKLaboklab(48.34% 0.156 -0.1619)
OKLCHoklch(48.34% 0.225 313.9)
XYZxyz(19.0244, 9.3120, 43.9664)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A17B4 #41B417
analogous
#3B17B4 #8A17B4 #B41790
triadic
#8A17B4 #B48A17 #17B48A
tetradic
#8A17B4 #B43B17 #41B417 #1790B4
square
#8A17B4 #B43B17 #41B417 #1790B4
split-complementary
#8A17B4 #90B417 #17B43B
monochromatic
#370947 #60107E #8A17B4 #B025E3 #C45BEA

Accessibility & contrast

On white

7.34
#8A17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8A17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A17B4
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A17B4#FFFFFF#000000##FFFFFF
##8A17B41.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#86436B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a17b4;
/* rgb */ color: rgb(138, 23, 180);
/* oklch */ color: oklch(48.3% 0.225 313.9);
Tailwind
colors: {
  custom: {
    50: '#b167cb',
    500: '#8a17b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a17b4;
$custom-light: #b167cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a17b4",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 283.949,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48338,
    "c": 0.22479,
    "h": 313.9
  },
  "luminance": 0.09311
}

Semantic roles & 50–950 ramp

primary
#8A17B4
secondary
#78CE59
accent
#F43467
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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