#8A2A8F#8A2A8F

#8A2A8F is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.176 H 325.8°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#8A2A8F
RGBrgb(138, 42, 143)
HSLhsl(297, 55%, 36%)
HSVhsv(297, 71%, 56%)
CMYKcmyk(3.5%, 70.6%, 0%, 43.9%)
CIE-LABlab(36.07, 53.17, -35.68)
CIE-LCHlch(36.07, 64.03, 326.14°)
OKLaboklab(47.19% 0.1459 -0.0991)
OKLCHoklch(47.19% 0.176 325.8)
XYZxyz(16.2668, 9.0434, 26.8700)
Luminance0.0904 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A8F #2F8F2A
analogous
#582A8F #8A2A8F #8F2A62
triadic
#8A2A8F #8F8A2A #2A8F8A
tetradic
#8A2A8F #8F582A #2F8F2A #2A628F
square
#8A2A8F #8F582A #2F8F2A #2A628F
split-complementary
#8A2A8F #628F2A #2A8F58
monochromatic
#2F0E30 #5C1C60 #8A2A8F #B838BE #CC62D1

Accessibility & contrast

On white

7.48
#8A2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8A2A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A8F
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A8F#FFFFFF#000000##FFFFFF
##8A2A8F1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144D92
Deuteranopia (green-blind)
#40598C
Tritanopia (blue-blind)
#8D3A59
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2a8f;
/* rgb */ color: rgb(138, 42, 143);
/* oklch */ color: oklch(47.2% 0.176 325.8);
Tailwind
colors: {
  custom: {
    50: '#af6db0',
    500: '#8a2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a8f;
$custom-light: #af6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a8f",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 297.03,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47186,
    "c": 0.17632,
    "h": 325.8
  },
  "luminance": 0.09042
}

Semantic roles & 50–950 ramp

primary
#8A2A8F
secondary
#62B75E
accent
#DE4A51
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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