#8A2BA1#8A2BA1

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

Color values

HEX#8A2BA1
RGBrgb(138, 43, 161)
HSLhsl(288, 58%, 40%)
HSVhsv(288, 73%, 63%)
CMYKcmyk(14.3%, 73.3%, 0%, 36.9%)
CIE-LABlab(37.31, 56.17, -44.63)
CIE-LCHlch(37.31, 71.74, 321.53°)
OKLaboklab(48.43% 0.144 -0.1252)
OKLCHoklch(48.43% 0.191 319)
XYZxyz(17.7773, 9.7051, 34.6482)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BA1 #42A12B
analogous
#4F2BA1 #8A2BA1 #A12B7D
triadic
#8A2BA1 #A18A2B #2BA18A
tetradic
#8A2BA1 #A14F2B #42A12B #2B7DA1
square
#8A2BA1 #A14F2B #42A12B #2B7DA1
split-complementary
#8A2BA1 #7DA12B #2BA14F
monochromatic
#371140 #611E71 #8A2BA1 #B03ECB #C46ED8

Accessibility & contrast

On white

7.14
#8A2BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A2BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2BA1
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BA1#FFFFFF#000000##FFFFFF
##8A2BA11.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#335B9E
Tritanopia (blue-blind)
#8A4264
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2ba1;
/* rgb */ color: rgb(138, 43, 161);
/* oklch */ color: oklch(48.4% 0.191 319.0);
Tailwind
colors: {
  custom: {
    50: '#b06ebd',
    500: '#8a2ba1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ba1;
$custom-light: #b06ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ba1",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 288.305,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.48427,
    "c": 0.19085,
    "h": 319
  },
  "luminance": 0.09704
}

Semantic roles & 50–950 ramp

primary
#8A2BA1
secondary
#79BF69
accent
#E14765
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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