#8A22A5#8A22A5

#8A22A5 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 47.9% C 0.204 H 318.1°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#8A22A5
RGBrgb(138, 34, 165)
HSLhsl(288, 66%, 39%)
HSVhsv(288, 79%, 65%)
CMYKcmyk(16.4%, 79.4%, 0%, 35.3%)
CIE-LABlab(36.49, 60.05, -48.36)
CIE-LCHlch(36.49, 77.10, 321.16°)
OKLaboklab(47.93% 0.1517 -0.1361)
OKLCHoklch(47.93% 0.204 318.1)
XYZxyz(17.8438, 9.2648, 36.4384)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A22A5 #3DA522
analogous
#4922A5 #8A22A5 #A5227F
triadic
#8A22A5 #A58A22 #22A58A
tetradic
#8A22A5 #A54922 #3DA522 #227FA5
square
#8A22A5 #A54922 #3DA522 #227FA5
split-complementary
#8A22A5 #7FA522 #22A549
monochromatic
#350D40 #601872 #8A22A5 #B230D4 #C563DF

Accessibility & contrast

On white

7.36
#8A22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A22A5
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A22A5#FFFFFF#000000##FFFFFF
##8A22A51.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#2859A2
Tritanopia (blue-blind)
#894064
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a22a5;
/* rgb */ color: rgb(138, 34, 165);
/* oklch */ color: oklch(47.9% 0.204 318.1);
Tailwind
colors: {
  custom: {
    50: '#b06ac0',
    500: '#8a22a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a22a5;
$custom-light: #b06ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a22a5",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 287.634,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47932,
    "c": 0.20377,
    "h": 318.1
  },
  "luminance": 0.09264
}

Semantic roles & 50–950 ramp

primary
#8A22A5
secondary
#74C45F
accent
#E93F62
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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