#8A22B5#8A22B5

#8A22B5 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.1% C 0.217 H 313.1°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8A22B5
RGBrgb(138, 34, 181)
HSLhsl(282, 68%, 42%)
HSVhsv(282, 81%, 71%)
CMYKcmyk(23.8%, 81.2%, 0%, 29%)
CIE-LABlab(37.63, 63.17, -56.05)
CIE-LCHlch(37.63, 84.46, 318.42°)
OKLaboklab(49.1% 0.1487 -0.1587)
OKLCHoklch(49.1% 0.217 313.1)
XYZxyz(19.3923, 9.8841, 44.5934)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22B5 #4DB522
analogous
#4122B5 #8A22B5 #B52297
triadic
#8A22B5 #B58A22 #22B58A
tetradic
#8A22B5 #B54122 #4DB522 #2297B5
square
#8A22B5 #B54122 #4DB522 #2297B5
split-complementary
#8A22B5 #97B522 #22B541
monochromatic
#3B0F4E #631881 #8A22B5 #AB3ADA #C16EE4

Accessibility & contrast

On white

7.05
#8A22B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A22B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22B5
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22B5#FFFFFF#000000##FFFFFF
##8A22B51.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#065BB2
Tritanopia (blue-blind)
#85476D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a22b5;
/* rgb */ color: rgb(138, 34, 181);
/* oklch */ color: oklch(49.1% 0.217 313.1);
Tailwind
colors: {
  custom: {
    50: '#b16bcc',
    500: '#8a22b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a22b5;
$custom-light: #b16bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22b5",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 181
  },
  "hsl": {
    "h": 282.449,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49097,
    "c": 0.21747,
    "h": 313.1
  },
  "luminance": 0.09884
}

Semantic roles & 50–950 ramp

primary
#8A22B5
secondary
#85CA69
accent
#EB3D70
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A22B5

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

Preview Lab → · Contrast checker → · Palette generator →

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