#8A22A0#8A22A0

#8A22A0 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.6% C 0.200 H 319.8°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#8A22A0
RGBrgb(138, 34, 160)
HSLhsl(290, 65%, 38%)
HSVhsv(290, 79%, 63%)
CMYKcmyk(13.8%, 78.8%, 0%, 37.3%)
CIE-LABlab(36.15, 59.11, -45.89)
CIE-LCHlch(36.15, 74.83, 322.18°)
OKLaboklab(47.59% 0.1524 -0.1288)
OKLCHoklch(47.59% 0.2 319.8)
XYZxyz(17.3976, 9.0863, 34.0883)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22A0 #38A022
analogous
#4B22A0 #8A22A0 #A02277
triadic
#8A22A0 #A08A22 #22A08A
tetradic
#8A22A0 #A04B22 #38A022 #2277A0
square
#8A22A0 #A04B22 #38A022 #2277A0
split-complementary
#8A22A0 #77A022 #22A04B
monochromatic
#330D3B #5E176E #8A22A0 #B52DD2 #C75FDD

Accessibility & contrast

On white

7.45
#8A22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A22A0
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22A0#FFFFFF#000000##FFFFFF
##8A22A01.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#2E589D
Tritanopia (blue-blind)
#8A3D61
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a22a0;
/* rgb */ color: rgb(138, 34, 160);
/* oklch */ color: oklch(47.6% 0.200 319.8);
Tailwind
colors: {
  custom: {
    50: '#b06abd',
    500: '#8a22a0',
    950: '#000000',
  },
}
SCSS
$custom: #8a22a0;
$custom-light: #b06abd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22a0",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 289.524,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47585,
    "c": 0.19955,
    "h": 319.8
  },
  "luminance": 0.09085
}

Semantic roles & 50–950 ramp

primary
#8A22A0
secondary
#6EC25C
accent
#E8405D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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