#8A22A6#8A22A6

#8A22A6 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.0% C 0.205 H 317.8°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#8A22A6
RGBrgb(138, 34, 166)
HSLhsl(287, 66%, 39%)
HSVhsv(287, 80%, 65%)
CMYKcmyk(16.9%, 79.5%, 0%, 34.9%)
CIE-LABlab(36.56, 60.24, -48.85)
CIE-LCHlch(36.56, 77.56, 320.96°)
OKLaboklab(48% 0.1515 -0.1375)
OKLCHoklch(48% 0.205 317.8)
XYZxyz(17.9352, 9.3013, 36.9196)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22A6 #3EA622
analogous
#4822A6 #8A22A6 #A62280
triadic
#8A22A6 #A68A22 #22A68A
tetradic
#8A22A6 #A64822 #3EA622 #2280A6
square
#8A22A6 #A64822 #3EA622 #2280A6
split-complementary
#8A22A6 #80A622 #22A648
monochromatic
#360D40 #601873 #8A22A6 #B230D5 #C563DF

Accessibility & contrast

On white

7.34
#8A22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8A22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22A6
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22A6#FFFFFF#000000##FFFFFF
##8A22A61.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#2759A3
Tritanopia (blue-blind)
#894064
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a22a6;
/* rgb */ color: rgb(138, 34, 166);
/* oklch */ color: oklch(48.0% 0.205 317.8);
Tailwind
colors: {
  custom: {
    50: '#b06ac1',
    500: '#8a22a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a22a6;
$custom-light: #b06ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22a6",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 287.273,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48003,
    "c": 0.20462,
    "h": 317.8
  },
  "luminance": 0.09301
}

Semantic roles & 50–950 ramp

primary
#8A22A6
secondary
#75C45F
accent
#E93F63
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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