#8A22A9#8A22A9

#8A22A9 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.2% C 0.207 H 316.8°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#8A22A9
RGBrgb(138, 34, 169)
HSLhsl(286, 67%, 40%)
HSVhsv(286, 80%, 66%)
CMYKcmyk(18.3%, 79.9%, 0%, 33.7%)
CIE-LABlab(36.77, 60.82, -50.31)
CIE-LCHlch(36.77, 78.93, 320.40°)
OKLaboklab(48.22% 0.151 -0.1418)
OKLCHoklch(48.22% 0.207 316.8)
XYZxyz(18.2136, 9.4127, 38.3859)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22A9 #41A922
analogous
#4622A9 #8A22A9 #A92285
triadic
#8A22A9 #A98A22 #22A98A
tetradic
#8A22A9 #A94622 #41A922 #2285A9
square
#8A22A9 #A94622 #41A922 #2285A9
split-complementary
#8A22A9 #85A922 #22A946
monochromatic
#370D43 #601876 #8A22A9 #B032D6 #C465E0

Accessibility & contrast

On white

7.29
#8A22A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A22A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22A9
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22A9#FFFFFF#000000##FFFFFF
##8A22A91.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#2359A6
Tritanopia (blue-blind)
#884166
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a22a9;
/* rgb */ color: rgb(138, 34, 169);
/* oklch */ color: oklch(48.2% 0.207 316.8);
Tailwind
colors: {
  custom: {
    50: '#b06ac3',
    500: '#8a22a9',
    950: '#000000',
  },
}
SCSS
$custom: #8a22a9;
$custom-light: #b06ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22a9",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 286.222,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48216,
    "c": 0.20717,
    "h": 316.8
  },
  "luminance": 0.09412
}

Semantic roles & 50–950 ramp

primary
#8A22A9
secondary
#78C561
accent
#E93E66
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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