#9B2ABA#9B2ABA

#9B2ABA is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.4% C 0.220 H 317.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9B2ABA
RGBrgb(155, 42, 186)
HSLhsl(287, 63%, 45%)
HSVhsv(287, 77%, 73%)
CMYKcmyk(16.7%, 77.4%, 0%, 27.1%)
CIE-LABlab(41.49, 64.73, -52.65)
CIE-LCHlch(41.49, 83.43, 320.88°)
OKLaboklab(52.44% 0.1628 -0.1482)
OKLCHoklch(52.44% 0.22 317.7)
XYZxyz(23.2072, 12.1707, 47.5716)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2ABA #49BA2A
analogous
#532ABA #9B2ABA #BA2A91
triadic
#9B2ABA #BA9B2A #2ABA9B
tetradic
#9B2ABA #BA532A #49BA2A #2A91BA
square
#9B2ABA #BA532A #49BA2A #2A91BA
split-complementary
#9B2ABA #91BA2A #2ABA53
monochromatic
#481356 #711F88 #9B2ABA #B84BD6 #CC7DE2

Accessibility & contrast

On white

6.12
#9B2ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9B2ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2ABA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2ABA#FFFFFF#000000##FFFFFF
##9B2ABA1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#2F65B7
Tritanopia (blue-blind)
#9A4A72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b2aba;
/* rgb */ color: rgb(155, 42, 186);
/* oklch */ color: oklch(52.4% 0.220 317.7);
Tailwind
colors: {
  custom: {
    50: '#bd71cf',
    500: '#9b2aba',
    950: '#000000',
  },
}
SCSS
$custom: #9b2aba;
$custom-light: #bd71cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2aba",
  "rgb": {
    "r": 155,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 287.083,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52443,
    "c": 0.22015,
    "h": 317.7
  },
  "luminance": 0.1217
}

Semantic roles & 50–950 ramp

primary
#9B2ABA
secondary
#88CA76
accent
#E64265
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9B2ABA

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

Preview Lab → · Contrast checker → · Palette generator →

#9B2ABA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva