#8B2AA2#8B2AA2

#8B2AA2 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.5% C 0.193 H 319.1°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#8B2AA2
RGBrgb(139, 42, 162)
HSLhsl(289, 59%, 40%)
HSVhsv(289, 74%, 64%)
CMYKcmyk(14.2%, 74.1%, 0%, 36.5%)
CIE-LABlab(37.40, 56.95, -45.08)
CIE-LCHlch(37.40, 72.63, 321.63°)
OKLaboklab(48.54% 0.1462 -0.1265)
OKLCHoklch(48.54% 0.193 319.1)
XYZxyz(17.9962, 9.7544, 35.1103)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2AA2 #41A22A
analogous
#4F2AA2 #8B2AA2 #A22A7D
triadic
#8B2AA2 #A28B2A #2AA28B
tetradic
#8B2AA2 #A24F2A #41A22A #2A7DA2
square
#8B2AA2 #A24F2A #41A22A #2A7DA2
split-complementary
#8B2AA2 #7DA22A #2AA24F
monochromatic
#381141 #611D71 #8B2AA2 #B13DCD #C56DD9

Accessibility & contrast

On white

7.12
#8B2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8B2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2AA2
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2AA2#FFFFFF#000000##FFFFFF
##8B2AA21.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#325B9F
Tritanopia (blue-blind)
#8B4264
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b2aa2;
/* rgb */ color: rgb(139, 42, 162);
/* oklch */ color: oklch(48.5% 0.193 319.1);
Tailwind
colors: {
  custom: {
    50: '#b16ebe',
    500: '#8b2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #8b2aa2;
$custom-light: #b16ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2aa2",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 288.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.48543,
    "c": 0.19329,
    "h": 319.1
  },
  "luminance": 0.09754
}

Semantic roles & 50–950 ramp

primary
#8B2AA2
secondary
#79C068
accent
#E24664
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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