#8A22AF#8A22AF

#8A22AF is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.7% C 0.212 H 314.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8A22AF
RGBrgb(138, 34, 175)
HSLhsl(284, 67%, 41%)
HSVhsv(284, 81%, 69%)
CMYKcmyk(21.1%, 80.6%, 0%, 31.4%)
CIE-LABlab(37.19, 61.99, -53.20)
CIE-LCHlch(37.19, 81.69, 319.36°)
OKLaboklab(48.65% 0.1499 -0.1503)
OKLCHoklch(48.65% 0.212 314.9)
XYZxyz(18.7898, 9.6432, 41.4207)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22AF #47AF22
analogous
#4322AF #8A22AF #AF228D
triadic
#8A22AF #AF8A22 #22AF8A
tetradic
#8A22AF #AF4322 #47AF22 #228DAF
square
#8A22AF #AF4322 #47AF22 #228DAF
split-complementary
#8A22AF #8DAF22 #22AF43
monochromatic
#390E49 #62187C #8A22AF #AE36D8 #C269E2

Accessibility & contrast

On white

7.17
#8A22AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A22AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22AF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22AF#FFFFFF#000000##FFFFFF
##8A22AF1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#185AAC
Tritanopia (blue-blind)
#874469
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a22af;
/* rgb */ color: rgb(138, 34, 175);
/* oklch */ color: oklch(48.7% 0.212 314.9);
Tailwind
colors: {
  custom: {
    50: '#b16bc8',
    500: '#8a22af',
    950: '#000000',
  },
}
SCSS
$custom: #8a22af;
$custom-light: #b16bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22af",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 175
  },
  "hsl": {
    "h": 284.255,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48651,
    "c": 0.2123,
    "h": 314.9
  },
  "luminance": 0.09642
}

Semantic roles & 50–950 ramp

primary
#8A22AF
secondary
#7FC865
accent
#EA3D6B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A22AF

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

Preview Lab → · Contrast checker → · Palette generator →

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