#8A2B96#8A2B96

#8A2B96 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.181 H 323.0°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#8A2B96
RGBrgb(138, 43, 150)
HSLhsl(293, 55%, 38%)
HSVhsv(293, 71%, 59%)
CMYKcmyk(8%, 71.3%, 0%, 41.2%)
CIE-LABlab(36.62, 54.07, -39.07)
CIE-LCHlch(36.62, 66.71, 324.15°)
OKLaboklab(47.72% 0.1447 -0.109)
OKLCHoklch(47.72% 0.181 323)
XYZxyz(16.8496, 9.3340, 29.7624)
Luminance0.0933 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B96 #37962B
analogous
#542B96 #8A2B96 #962B6C
triadic
#8A2B96 #968A2B #2B968A
tetradic
#8A2B96 #96542B #37962B #2B6C96
square
#8A2B96 #96542B #37962B #2B6C96
split-complementary
#8A2B96 #6C962B #2B9654
monochromatic
#321037 #5E1D66 #8A2B96 #B639C6 #C868D4

Accessibility & contrast

On white

7.33
#8A2B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A2B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B96
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B96#FFFFFF#000000##FFFFFF
##8A2B961.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054F99
Deuteranopia (green-blind)
#3C5A93
Tritanopia (blue-blind)
#8C3E5D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2b96;
/* rgb */ color: rgb(138, 43, 150);
/* oklch */ color: oklch(47.7% 0.181 323.0);
Tailwind
colors: {
  custom: {
    50: '#af6db5',
    500: '#8a2b96',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b96;
$custom-light: #af6db5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b96",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 150
  },
  "hsl": {
    "h": 293.271,
    "s": 55.44,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47715,
    "c": 0.18113,
    "h": 323
  },
  "luminance": 0.09333
}

Semantic roles & 50–950 ramp

primary
#8A2B96
secondary
#6DBA63
accent
#DF495A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2B96

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

Preview Lab → · Contrast checker → · Palette generator →

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