#8A22B2#8A22B2

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

Color values

HEX#8A22B2
RGBrgb(138, 34, 178)
HSLhsl(283, 68%, 42%)
HSVhsv(283, 81%, 70%)
CMYKcmyk(22.5%, 80.9%, 0%, 30.2%)
CIE-LABlab(37.41, 62.58, -54.63)
CIE-LCHlch(37.41, 83.07, 318.88°)
OKLaboklab(48.87% 0.1493 -0.1545)
OKLCHoklch(48.87% 0.215 314)
XYZxyz(19.0878, 9.7623, 42.9897)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22B2 #4AB222
analogous
#4222B2 #8A22B2 #B22292
triadic
#8A22B2 #B28A22 #22B28A
tetradic
#8A22B2 #B24222 #4AB222 #2292B2
square
#8A22B2 #B24222 #4AB222 #2292B2
split-complementary
#8A22B2 #92B222 #22B242
monochromatic
#3A0E4B #62187F #8A22B2 #AC38D9 #C26CE3

Accessibility & contrast

On white

7.11
#8A22B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A22B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22B2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22B2#FFFFFF#000000##FFFFFF
##8A22B21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#115AAF
Tritanopia (blue-blind)
#86466B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a22b2;
/* rgb */ color: rgb(138, 34, 178);
/* oklch */ color: oklch(48.9% 0.215 314.0);
Tailwind
colors: {
  custom: {
    50: '#b16bca',
    500: '#8a22b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a22b2;
$custom-light: #b16bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22b2",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 178
  },
  "hsl": {
    "h": 283.333,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48873,
    "c": 0.21489,
    "h": 314
  },
  "luminance": 0.09762
}

Semantic roles & 50–950 ramp

primary
#8A22B2
secondary
#82C967
accent
#EB3D6D
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A22B2

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

Preview Lab → · Contrast checker → · Palette generator →

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