#8A2AA7#8A2AA7

#8A2AA7 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.197 H 317.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#8A2AA7
RGBrgb(138, 42, 167)
HSLhsl(286, 60%, 41%)
HSVhsv(286, 75%, 65%)
CMYKcmyk(17.4%, 74.9%, 0%, 34.5%)
CIE-LABlab(37.57, 57.72, -47.81)
CIE-LCHlch(37.57, 74.95, 320.36°)
OKLaboklab(48.74% 0.1444 -0.1345)
OKLCHoklch(48.74% 0.197 317)
XYZxyz(18.2832, 9.8500, 37.4899)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AA7 #47A72A
analogous
#4B2AA7 #8A2AA7 #A72A85
triadic
#8A2AA7 #A78A2A #2AA78A
tetradic
#8A2AA7 #A74B2A #47A72A #2A85A7
square
#8A2AA7 #A74B2A #47A72A #2A85A7
split-complementary
#8A2AA7 #85A72A #2AA74B
monochromatic
#391145 #621E76 #8A2AA7 #AE3FCF #C270DB

Accessibility & contrast

On white

7.07
#8A2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8A2AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2AA7
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AA7#FFFFFF#000000##FFFFFF
##8A2AA71.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#2C5BA4
Tritanopia (blue-blind)
#894567
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2aa7;
/* rgb */ color: rgb(138, 42, 167);
/* oklch */ color: oklch(48.7% 0.197 317.0);
Tailwind
colors: {
  custom: {
    50: '#b06ec2',
    500: '#8a2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2aa7;
$custom-light: #b06ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2aa7",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 286.08,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48741,
    "c": 0.19734,
    "h": 317
  },
  "luminance": 0.09849
}

Semantic roles & 50–950 ramp

primary
#8A2AA7
secondary
#7FC26B
accent
#E3456A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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