#8A2A9E#8A2A9E

#8A2A9E is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.1% C 0.189 H 320.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#8A2A9E
RGBrgb(138, 42, 158)
HSLhsl(290, 58%, 39%)
HSVhsv(290, 73%, 62%)
CMYKcmyk(12.7%, 73.4%, 0%, 38%)
CIE-LABlab(36.98, 55.97, -43.34)
CIE-LCHlch(36.98, 70.79, 322.24°)
OKLaboklab(48.13% 0.1453 -0.1214)
OKLCHoklch(48.13% 0.189 320.1)
XYZxyz(17.4800, 9.5287, 33.2596)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A9E #3E9E2A
analogous
#502A9E #8A2A9E #9E2A78
triadic
#8A2A9E #9E8A2A #2A9E8A
tetradic
#8A2A9E #9E502A #3E9E2A #2A789E
square
#8A2A9E #9E502A #3E9E2A #2A789E
split-complementary
#8A2A9E #789E2A #2A9E50
monochromatic
#36103D #601D6E #8A2A9E #B23ACB #C56BD8

Accessibility & contrast

On white

7.23
#8A2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A9E
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A9E#FFFFFF#000000##FFFFFF
##8A2A9E1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#355A9B
Tritanopia (blue-blind)
#8B4162
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2a9e;
/* rgb */ color: rgb(138, 42, 158);
/* oklch */ color: oklch(48.1% 0.189 320.1);
Tailwind
colors: {
  custom: {
    50: '#b06dbb',
    500: '#8a2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a9e;
$custom-light: #b06dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a9e",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 289.655,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48134,
    "c": 0.18934,
    "h": 320.1
  },
  "luminance": 0.09528
}

Semantic roles & 50–950 ramp

primary
#8A2A9E
secondary
#75BE66
accent
#E14761
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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