#8A2B8A#8A2B8A

#8A2B8A is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.171 H 327.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8A2B8A
RGBrgb(138, 43, 138)
HSLhsl(300, 52%, 35%)
HSVhsv(300, 69%, 54%)
CMYKcmyk(0%, 68.8%, 0%, 45.9%)
CIE-LABlab(35.92, 51.89, -32.84)
CIE-LCHlch(35.92, 61.41, 327.67°)
OKLaboklab(46.99% 0.1447 -0.0908)
OKLCHoklch(46.99% 0.171 327.9)
XYZxyz(15.9323, 8.9671, 24.9315)
Luminance0.0897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B8A #2B8A2B
analogous
#5A2B8A #8A2B8A #8A2B5A
triadic
#8A2B8A #8A8A2B #2B8A8A
tetradic
#8A2B8A #8A5A2B #2B8A2B #2B5A8A
square
#8A2B8A #8A5A2B #2B8A2B #2B5A8A
split-complementary
#8A2B8A #5A8A2B #2B8A5A
monochromatic
#2D0E2D #5B1C5B #8A2B8A #B93AB9 #CE61CE

Accessibility & contrast

On white

7.52
#8A2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A2B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B8A
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B8A#FFFFFF#000000##FFFFFF
##8A2B8A1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2b8a;
/* rgb */ color: rgb(138, 43, 138);
/* oklch */ color: oklch(47.0% 0.171 327.9);
Tailwind
colors: {
  custom: {
    50: '#af6dac',
    500: '#8a2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b8a;
$custom-light: #af6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b8a",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46988,
    "c": 0.17082,
    "h": 327.9
  },
  "luminance": 0.08966
}

Semantic roles & 50–950 ramp

primary
#8A2B8A
secondary
#5DB45D
accent
#DC4C4C
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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