#8A2A8D#8A2A8D

#8A2A8D is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.175 H 326.6°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#8A2A8D
RGBrgb(138, 42, 141)
HSLhsl(298, 54%, 36%)
HSVhsv(298, 70%, 55%)
CMYKcmyk(2.1%, 70.2%, 0%, 44.7%)
CIE-LABlab(35.95, 52.81, -34.63)
CIE-LCHlch(35.95, 63.16, 326.75°)
OKLaboklab(47.07% 0.1458 -0.096)
OKLCHoklch(47.07% 0.175 326.6)
XYZxyz(16.1166, 8.9834, 26.0792)
Luminance0.0898 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A8D #2D8D2A
analogous
#582A8D #8A2A8D #8D2A5E
triadic
#8A2A8D #8D8A2A #2A8D8A
tetradic
#8A2A8D #8D582A #2D8D2A #2A5E8D
square
#8A2A8D #8D582A #2D8D2A #2A5E8D
split-complementary
#8A2A8D #5E8D2A #2A8D58
monochromatic
#2E0E2F #5C1C5E #8A2A8D #B838BC #CD61D0

Accessibility & contrast

On white

7.51
#8A2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8A2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A8D
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A8D#FFFFFF#000000##FFFFFF
##8A2A8D1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174D90
Deuteranopia (green-blind)
#41598A
Tritanopia (blue-blind)
#8E3958
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2a8d;
/* rgb */ color: rgb(138, 42, 141);
/* oklch */ color: oklch(47.1% 0.175 326.6);
Tailwind
colors: {
  custom: {
    50: '#af6daf',
    500: '#8a2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a8d;
$custom-light: #af6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a8d",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 298.182,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47065,
    "c": 0.17462,
    "h": 326.6
  },
  "luminance": 0.08982
}

Semantic roles & 50–950 ramp

primary
#8A2A8D
secondary
#60B65D
accent
#DD4A4F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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