#8A2A8B#8A2A8B

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

Color values

HEX#8A2A8B
RGBrgb(138, 42, 139)
HSLhsl(299, 54%, 35%)
HSVhsv(299, 70%, 55%)
CMYKcmyk(0.7%, 69.8%, 0%, 45.5%)
CIE-LABlab(35.84, 52.46, -33.58)
CIE-LCHlch(35.84, 62.29, 327.37°)
OKLaboklab(46.95% 0.1458 -0.093)
OKLCHoklch(46.95% 0.173 327.5)
XYZxyz(15.9692, 8.9244, 25.3026)
Luminance0.0892 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A8B #2B8B2A
analogous
#592A8B #8A2A8B #8B2A5C
triadic
#8A2A8B #8B8A2A #2A8B8A
tetradic
#8A2A8B #8B592A #2B8B2A #2A5C8B
square
#8A2A8B #8B592A #2B8B2A #2A5C8B
split-complementary
#8A2A8B #5C8B2A #2A8B59
monochromatic
#2D0E2D #5B1C5C #8A2A8B #B938BA #CE60CF

Accessibility & contrast

On white

7.54
#8A2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2A8B
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A8B#FFFFFF#000000##FFFFFF
##8A2A8B1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2a8b;
/* rgb */ color: rgb(138, 42, 139);
/* oklch */ color: oklch(46.9% 0.173 327.5);
Tailwind
colors: {
  custom: {
    50: '#af6dad',
    500: '#8a2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a8b;
$custom-light: #af6dad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a8b",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 299.381,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46947,
    "c": 0.17293,
    "h": 327.5
  },
  "luminance": 0.08923
}

Semantic roles & 50–950 ramp

primary
#8A2A8B
secondary
#5DB55C
accent
#DD4B4C
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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