#9B2ABC#9B2ABC

#9B2ABC is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.222 H 317.1°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9B2ABC
RGBrgb(155, 42, 188)
HSLhsl(286, 63%, 45%)
HSVhsv(286, 78%, 74%)
CMYKcmyk(17.6%, 77.7%, 0%, 26.3%)
CIE-LABlab(41.62, 65.10, -53.60)
CIE-LCHlch(41.62, 84.33, 320.53°)
OKLaboklab(52.58% 0.1625 -0.151)
OKLCHoklch(52.58% 0.222 317.1)
XYZxyz(23.4213, 12.2564, 48.6992)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2ABC #4BBC2A
analogous
#522ABC #9B2ABC #BC2A94
triadic
#9B2ABC #BC9B2A #2ABC9B
tetradic
#9B2ABC #BC522A #4BBC2A #2A94BC
square
#9B2ABC #BC522A #4BBC2A #2A94BC
split-complementary
#9B2ABC #94BC2A #2ABC52
monochromatic
#491458 #721F8A #9B2ABC #B84CD7 #CC7EE2

Accessibility & contrast

On white

6.09
#9B2ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9B2ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2ABC
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2ABC#FFFFFF#000000##FFFFFF
##9B2ABC1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#2C65B9
Tritanopia (blue-blind)
#994B73
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b2abc;
/* rgb */ color: rgb(155, 42, 188);
/* oklch */ color: oklch(52.6% 0.222 317.1);
Tailwind
colors: {
  custom: {
    50: '#bd71d1',
    500: '#9b2abc',
    950: '#000000',
  },
}
SCSS
$custom: #9b2abc;
$custom-light: #bd71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2abc",
  "rgb": {
    "r": 155,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 286.438,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52581,
    "c": 0.22184,
    "h": 317.1
  },
  "luminance": 0.12255
}

Semantic roles & 50–950 ramp

primary
#9B2ABC
secondary
#8ACB77
accent
#E74167
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9B2ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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