#8A2A8A#8A2A8A

#8A2A8A is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.172 H 327.9°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#8A2A8A
RGBrgb(138, 42, 138)
HSLhsl(300, 53%, 35%)
HSVhsv(300, 70%, 54%)
CMYKcmyk(0%, 69.6%, 0%, 45.9%)
CIE-LABlab(35.78, 52.28, -33.06)
CIE-LCHlch(35.78, 61.86, 327.70°)
OKLaboklab(46.89% 0.1458 -0.0915)
OKLCHoklch(46.89% 0.172 327.9)
XYZxyz(15.8964, 8.8953, 24.9195)
Luminance0.0889 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A8A #2A8A2A
analogous
#5A2A8A #8A2A8A #8A2A5A
triadic
#8A2A8A #8A8A2A #2A8A8A
tetradic
#8A2A8A #8A5A2A #2A8A2A #2A5A8A
square
#8A2A8A #8A5A2A #2A8A2A #2A5A8A
split-complementary
#8A2A8A #5A8A2A #2A8A5A
monochromatic
#2C0D2C #5B1C5B #8A2A8A #B938B9 #CF60CF

Accessibility & contrast

On white

7.56
#8A2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A8A
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A8A#FFFFFF#000000##FFFFFF
##8A2A8A1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4C8D
Deuteranopia (green-blind)
#435987
Tritanopia (blue-blind)
#8E3857
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2a8a;
/* rgb */ color: rgb(138, 42, 138);
/* oklch */ color: oklch(46.9% 0.172 327.9);
Tailwind
colors: {
  custom: {
    50: '#af6dac',
    500: '#8a2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a8a;
$custom-light: #af6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a8a",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46888,
    "c": 0.1721,
    "h": 327.9
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#8A2A8A
secondary
#5BB45B
accent
#DD4B4B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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