#8A22AE#8A22AE

#8A22AE is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.6% C 0.211 H 315.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#8A22AE
RGBrgb(138, 34, 174)
HSLhsl(285, 67%, 41%)
HSVhsv(285, 80%, 68%)
CMYKcmyk(20.7%, 80.5%, 0%, 31.8%)
CIE-LABlab(37.12, 61.79, -52.72)
CIE-LCHlch(37.12, 81.23, 319.53°)
OKLaboklab(48.58% 0.1501 -0.1489)
OKLCHoklch(48.58% 0.211 315.2)
XYZxyz(18.6920, 9.6040, 40.9053)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22AE #46AE22
analogous
#4422AE #8A22AE #AE228C
triadic
#8A22AE #AE8A22 #22AE8A
tetradic
#8A22AE #AE4422 #46AE22 #228CAE
square
#8A22AE #AE4422 #46AE22 #228CAE
split-complementary
#8A22AE #8CAE22 #22AE44
monochromatic
#390E48 #61187B #8A22AE #AE36D8 #C369E2

Accessibility & contrast

On white

7.19
#8A22AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8A22AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22AE
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22AE#FFFFFF#000000##FFFFFF
##8A22AE1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#1A5AAB
Tritanopia (blue-blind)
#874469
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a22ae;
/* rgb */ color: rgb(138, 34, 174);
/* oklch */ color: oklch(48.6% 0.211 315.2);
Tailwind
colors: {
  custom: {
    50: '#b16bc7',
    500: '#8a22ae',
    950: '#000000',
  },
}
SCSS
$custom: #8a22ae;
$custom-light: #b16bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22ae",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 174
  },
  "hsl": {
    "h": 284.571,
    "s": 67.308,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48578,
    "c": 0.21144,
    "h": 315.2
  },
  "luminance": 0.09603
}

Semantic roles & 50–950 ramp

primary
#8A22AE
secondary
#7EC764
accent
#EA3E6A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A22AE

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

Preview Lab → · Contrast checker → · Palette generator →

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