#8A2AA9#8A2AA9

#8A2AA9 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.199 H 316.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8A2AA9
RGBrgb(138, 42, 169)
HSLhsl(285, 60%, 41%)
HSVhsv(285, 75%, 66%)
CMYKcmyk(18.3%, 75.1%, 0%, 33.7%)
CIE-LABlab(37.71, 58.11, -48.79)
CIE-LCHlch(37.71, 75.88, 319.98°)
OKLaboklab(48.88% 0.1441 -0.1374)
OKLCHoklch(48.88% 0.199 316.4)
XYZxyz(18.4695, 9.9245, 38.4712)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AA9 #49A92A
analogous
#4A2AA9 #8A2AA9 #A92A89
triadic
#8A2AA9 #A98A2A #2AA98A
tetradic
#8A2AA9 #A94A2A #49A92A #2A89A9
square
#8A2AA9 #A94A2A #49A92A #2A89A9
split-complementary
#8A2AA9 #89A92A #2AA94A
monochromatic
#3A1247 #621E78 #8A2AA9 #AD41D0 #C272DC

Accessibility & contrast

On white

7.04
#8A2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2AA9
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AA9#FFFFFF#000000##FFFFFF
##8A2AA91.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#2A5BA6
Tritanopia (blue-blind)
#884568
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2aa9;
/* rgb */ color: rgb(138, 42, 169);
/* oklch */ color: oklch(48.9% 0.199 316.4);
Tailwind
colors: {
  custom: {
    50: '#b06ec3',
    500: '#8a2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aa9;
$custom-light: #b06ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aa9",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 285.354,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48879,
    "c": 0.19914,
    "h": 316.4
  },
  "luminance": 0.09924
}

Semantic roles & 50–950 ramp

primary
#8A2AA9
secondary
#81C36C
accent
#E3446B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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