#8A22B3#8A22B3

#8A22B3 is a mid, highly saturated purple. Relative luminance 0.098; OKLCH L 48.9% C 0.216 H 313.7°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#8A22B3
RGBrgb(138, 34, 179)
HSLhsl(283, 68%, 42%)
HSVhsv(283, 81%, 70%)
CMYKcmyk(22.9%, 81%, 0%, 29.8%)
CIE-LABlab(37.49, 62.77, -55.11)
CIE-LCHlch(37.49, 83.53, 318.72°)
OKLaboklab(48.95% 0.1491 -0.1559)
OKLCHoklch(48.95% 0.216 313.7)
XYZxyz(19.1885, 9.8027, 43.5204)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22B3 #4BB322
analogous
#4122B3 #8A22B3 #B32294
triadic
#8A22B3 #B38A22 #22B38A
tetradic
#8A22B3 #B34122 #4BB322 #2294B3
square
#8A22B3 #B34122 #4BB322 #2294B3
split-complementary
#8A22B3 #94B322 #22B341
monochromatic
#3B0E4C #621880 #8A22B3 #AC39D9 #C26CE3

Accessibility & contrast

On white

7.09
#8A22B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A22B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22B3
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22B3#FFFFFF#000000##FFFFFF
##8A22B31.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0E5AB0
Tritanopia (blue-blind)
#86466C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a22b3;
/* rgb */ color: rgb(138, 34, 179);
/* oklch */ color: oklch(48.9% 0.216 313.7);
Tailwind
colors: {
  custom: {
    50: '#b16bcb',
    500: '#8a22b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a22b3;
$custom-light: #b16bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22b3",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 179
  },
  "hsl": {
    "h": 283.034,
    "s": 68.075,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48947,
    "c": 0.21574,
    "h": 313.7
  },
  "luminance": 0.09802
}

Semantic roles & 50–950 ramp

primary
#8A22B3
secondary
#83C968
accent
#EB3D6E
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A22B3

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

Preview Lab → · Contrast checker → · Palette generator →

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