#8A22A1#8A22A1

#8A22A1 is a mid, highly saturated purple. Relative luminance 0.091; OKLCH L 47.7% C 0.200 H 319.4°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#8A22A1
RGBrgb(138, 34, 161)
HSLhsl(289, 65%, 38%)
HSVhsv(289, 79%, 63%)
CMYKcmyk(14.3%, 78.9%, 0%, 36.9%)
CIE-LABlab(36.22, 59.30, -46.39)
CIE-LCHlch(36.22, 75.28, 321.96°)
OKLaboklab(47.65% 0.1522 -0.1303)
OKLCHoklch(47.65% 0.2 319.4)
XYZxyz(17.4855, 9.1214, 34.5509)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22A1 #39A122
analogous
#4A22A1 #8A22A1 #A12278
triadic
#8A22A1 #A18A22 #22A18A
tetradic
#8A22A1 #A14A22 #39A122 #2278A1
square
#8A22A1 #A14A22 #39A122 #2278A1
split-complementary
#8A22A1 #78A122 #22A14A
monochromatic
#330D3C #5F176E #8A22A1 #B52DD3 #C760DD

Accessibility & contrast

On white

7.44
#8A22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8A22A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22A1
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22A1#FFFFFF#000000##FFFFFF
##8A22A11.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a22a1;
/* rgb */ color: rgb(138, 34, 161);
/* oklch */ color: oklch(47.7% 0.200 319.4);
Tailwind
colors: {
  custom: {
    50: '#b06abd',
    500: '#8a22a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a22a1;
$custom-light: #b06abd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22a1",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 289.134,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47654,
    "c": 0.20039,
    "h": 319.4
  },
  "luminance": 0.09121
}

Semantic roles & 50–950 ramp

primary
#8A22A1
secondary
#6FC25D
accent
#E8405E
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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