#8A22B1#8A22B1

#8A22B1 is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.8% C 0.214 H 314.3°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#8A22B1
RGBrgb(138, 34, 177)
HSLhsl(284, 68%, 41%)
HSVhsv(284, 81%, 69%)
CMYKcmyk(22%, 80.8%, 0%, 30.6%)
CIE-LABlab(37.34, 62.38, -54.16)
CIE-LCHlch(37.34, 82.61, 319.04°)
OKLaboklab(48.8% 0.1495 -0.1531)
OKLCHoklch(48.8% 0.214 314.3)
XYZxyz(18.9877, 9.7223, 42.4628)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22B1 #49B122
analogous
#4222B1 #8A22B1 #B12291
triadic
#8A22B1 #B18A22 #22B18A
tetradic
#8A22B1 #B14222 #49B122 #2291B1
square
#8A22B1 #B14222 #49B122 #2291B1
split-complementary
#8A22B1 #91B122 #22B142
monochromatic
#3A0E4A #62187E #8A22B1 #AD38D9 #C26BE3

Accessibility & contrast

On white

7.13
#8A22B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A22B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22B1
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22B1#FFFFFF#000000##FFFFFF
##8A22B11.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#145AAE
Tritanopia (blue-blind)
#86456B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a22b1;
/* rgb */ color: rgb(138, 34, 177);
/* oklch */ color: oklch(48.8% 0.214 314.3);
Tailwind
colors: {
  custom: {
    50: '#b16bc9',
    500: '#8a22b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a22b1;
$custom-light: #b16bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22b1",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 177
  },
  "hsl": {
    "h": 283.636,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48798,
    "c": 0.21402,
    "h": 314.3
  },
  "luminance": 0.09722
}

Semantic roles & 50–950 ramp

primary
#8A22B1
secondary
#81C966
accent
#EB3D6C
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A22B1

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

Preview Lab → · Contrast checker → · Palette generator →

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