#8A2A9A#8A2A9A

#8A2A9A is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.186 H 321.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#8A2A9A
RGBrgb(138, 42, 154)
HSLhsl(291, 57%, 38%)
HSVhsv(291, 73%, 60%)
CMYKcmyk(10.4%, 72.7%, 0%, 39.6%)
CIE-LABlab(36.73, 55.20, -41.33)
CIE-LCHlch(36.73, 68.96, 323.18°)
OKLaboklab(47.87% 0.1455 -0.1155)
OKLCHoklch(47.87% 0.186 321.6)
XYZxyz(17.1413, 9.3932, 31.4758)
Luminance0.0939 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A9A #3A9A2A
analogous
#522A9A #8A2A9A #9A2A72
triadic
#8A2A9A #9A8A2A #2A9A8A
tetradic
#8A2A9A #9A522A #3A9A2A #2A729A
square
#8A2A9A #9A522A #3A9A2A #2A729A
split-complementary
#8A2A9A #729A2A #2A9A52
monochromatic
#34103A #5F1D6A #8A2A9A #B438C9 #C668D6

Accessibility & contrast

On white

7.30
#8A2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A2A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A9A
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A9A#FFFFFF#000000##FFFFFF
##8A2A9A1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509D
Deuteranopia (green-blind)
#385A97
Tritanopia (blue-blind)
#8B3F5F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2a9a;
/* rgb */ color: rgb(138, 42, 154);
/* oklch */ color: oklch(47.9% 0.186 321.6);
Tailwind
colors: {
  custom: {
    50: '#b06db8',
    500: '#8a2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a9a;
$custom-light: #b06db8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a9a",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 291.429,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.47873,
    "c": 0.18582,
    "h": 321.6
  },
  "luminance": 0.09392
}

Semantic roles & 50–950 ramp

primary
#8A2A9A
secondary
#70BC63
accent
#E0475D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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