#9B2CBA#9B2CBA

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

Color values

HEX#9B2CBA
RGBrgb(155, 44, 186)
HSLhsl(287, 62%, 45%)
HSVhsv(287, 76%, 73%)
CMYKcmyk(16.7%, 76.3%, 0%, 27.1%)
CIE-LABlab(41.71, 64.07, -52.28)
CIE-LCHlch(41.71, 82.69, 320.79°)
OKLaboklab(52.6% 0.1611 -0.1471)
OKLCHoklch(52.6% 0.218 317.6)
XYZxyz(23.2799, 12.3161, 47.5958)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2CBA #4BBA2C
analogous
#542CBA #9B2CBA #BA2C92
triadic
#9B2CBA #BA9B2C #2CBA9B
tetradic
#9B2CBA #BA542C #4BBA2C #2C92BA
square
#9B2CBA #BA542C #4BBA2C #2C92BA
split-complementary
#9B2CBA #92BA2C #2CBA54
monochromatic
#491557 #722089 #9B2CBA #B84ED5 #CC80E1

Accessibility & contrast

On white

6.06
#9B2CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9B2CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2CBA
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2CBA#FFFFFF#000000##FFFFFF
##9B2CBA1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#3166B7
Tritanopia (blue-blind)
#9A4B72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b2cba;
/* rgb */ color: rgb(155, 44, 186);
/* oklch */ color: oklch(52.6% 0.218 317.6);
Tailwind
colors: {
  custom: {
    50: '#bd72cf',
    500: '#9b2cba',
    950: '#000000',
  },
}
SCSS
$custom: #9b2cba;
$custom-light: #bd72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2cba",
  "rgb": {
    "r": 155,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 286.901,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52604,
    "c": 0.21818,
    "h": 317.6
  },
  "luminance": 0.12315
}

Semantic roles & 50–950 ramp

primary
#9B2CBA
secondary
#8ACA78
accent
#E54366
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9B2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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