#8A2AA2#8A2AA2

#8A2AA2 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.4% C 0.193 H 318.7°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#8A2AA2
RGBrgb(138, 42, 162)
HSLhsl(288, 59%, 40%)
HSVhsv(288, 74%, 64%)
CMYKcmyk(14.8%, 74.1%, 0%, 36.5%)
CIE-LABlab(37.24, 56.74, -45.34)
CIE-LCHlch(37.24, 72.63, 321.37°)
OKLaboklab(48.4% 0.1449 -0.1273)
OKLCHoklch(48.4% 0.193 318.7)
XYZxyz(17.8299, 9.6687, 35.1025)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AA2 #42A22A
analogous
#4E2AA2 #8A2AA2 #A22A7E
triadic
#8A2AA2 #A28A2A #2AA28A
tetradic
#8A2AA2 #A24E2A #42A22A #2A7EA2
square
#8A2AA2 #A24E2A #42A22A #2A7EA2
split-complementary
#8A2AA2 #7EA22A #2AA24E
monochromatic
#371141 #611D71 #8A2AA2 #B03DCD #C46DD9

Accessibility & contrast

On white

7.16
#8A2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2AA2
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AA2#FFFFFF#000000##FFFFFF
##8A2AA21.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#315B9F
Tritanopia (blue-blind)
#8A4264
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2aa2;
/* rgb */ color: rgb(138, 42, 162);
/* oklch */ color: oklch(48.4% 0.193 318.7);
Tailwind
colors: {
  custom: {
    50: '#b06dbe',
    500: '#8a2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aa2;
$custom-light: #b06dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aa2",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 288,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.48401,
    "c": 0.19289,
    "h": 318.7
  },
  "luminance": 0.09668
}

Semantic roles & 50–950 ramp

primary
#8A2AA2
secondary
#79C068
accent
#E24665
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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