#8A22A7#8A22A7

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

Color values

HEX#8A22A7
RGBrgb(138, 34, 167)
HSLhsl(287, 66%, 39%)
HSVhsv(287, 80%, 65%)
CMYKcmyk(17.4%, 79.6%, 0%, 34.5%)
CIE-LABlab(36.63, 60.43, -49.34)
CIE-LCHlch(36.63, 78.01, 320.77°)
OKLaboklab(48.07% 0.1514 -0.1389)
OKLCHoklch(48.07% 0.205 317.4)
XYZxyz(18.0273, 9.3382, 37.4046)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22A7 #3FA722
analogous
#4722A7 #8A22A7 #A72282
triadic
#8A22A7 #A78A22 #22A78A
tetradic
#8A22A7 #A74722 #3FA722 #2282A7
square
#8A22A7 #A74722 #3FA722 #2282A7
split-complementary
#8A22A7 #82A722 #22A747
monochromatic
#360D41 #601874 #8A22A7 #B131D5 #C564DF

Accessibility & contrast

On white

7.32
#8A22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A22A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22A7
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22A7#FFFFFF#000000##FFFFFF
##8A22A71.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#2659A4
Tritanopia (blue-blind)
#894065
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a22a7;
/* rgb */ color: rgb(138, 34, 167);
/* oklch */ color: oklch(48.1% 0.205 317.4);
Tailwind
colors: {
  custom: {
    50: '#b06ac2',
    500: '#8a22a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a22a7;
$custom-light: #b06ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22a7",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 286.917,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48073,
    "c": 0.20547,
    "h": 317.4
  },
  "luminance": 0.09337
}

Semantic roles & 50–950 ramp

primary
#8A22A7
secondary
#76C560
accent
#E93F64
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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