#8A22A8#8A22A8

#8A22A8 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.1% C 0.206 H 317.1°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#8A22A8
RGBrgb(138, 34, 168)
HSLhsl(287, 66%, 40%)
HSVhsv(287, 80%, 66%)
CMYKcmyk(17.9%, 79.8%, 0%, 34.1%)
CIE-LABlab(36.70, 60.63, -49.82)
CIE-LCHlch(36.70, 78.47, 320.59°)
OKLaboklab(48.14% 0.1512 -0.1404)
OKLCHoklch(48.14% 0.206 317.1)
XYZxyz(18.1201, 9.3753, 37.8933)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22A8 #40A822
analogous
#4722A8 #8A22A8 #A82283
triadic
#8A22A8 #A88A22 #22A88A
tetradic
#8A22A8 #A84722 #40A822 #2283A8
square
#8A22A8 #A84722 #40A822 #2283A8
split-complementary
#8A22A8 #83A822 #22A847
monochromatic
#360D42 #601875 #8A22A8 #B132D5 #C465E0

Accessibility & contrast

On white

7.30
#8A22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A22A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22A8
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22A8#FFFFFF#000000##FFFFFF
##8A22A81.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#2459A5
Tritanopia (blue-blind)
#884165
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a22a8;
/* rgb */ color: rgb(138, 34, 168);
/* oklch */ color: oklch(48.1% 0.206 317.1);
Tailwind
colors: {
  custom: {
    50: '#b06ac3',
    500: '#8a22a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a22a8;
$custom-light: #b06ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22a8",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 286.567,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48144,
    "c": 0.20632,
    "h": 317.1
  },
  "luminance": 0.09374
}

Semantic roles & 50–950 ramp

primary
#8A22A8
secondary
#77C561
accent
#E93F65
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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