#9A2BBA#9A2BBA

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

Color values

HEX#9A2BBA
RGBrgb(154, 43, 186)
HSLhsl(287, 62%, 45%)
HSVhsv(287, 77%, 73%)
CMYKcmyk(17.2%, 76.9%, 0%, 27.1%)
CIE-LABlab(41.44, 64.21, -52.72)
CIE-LCHlch(41.44, 83.08, 320.61°)
OKLaboklab(52.38% 0.1608 -0.1484)
OKLCHoklch(52.38% 0.219 317.3)
XYZxyz(23.0519, 12.1440, 47.5746)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2BBA #4BBA2B
analogous
#522BBA #9A2BBA #BA2B93
triadic
#9A2BBA #BA9A2B #2BBA9A
tetradic
#9A2BBA #BA522B #4BBA2B #2B93BA
square
#9A2BBA #BA522B #4BBA2B #2B93BA
split-complementary
#9A2BBA #93BA2B #2BBA52
monochromatic
#481457 #712088 #9A2BBA #B74CD6 #CB7EE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A2BBA#FFFFFF#000000##FFFFFF
##9A2BBA1.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)
#2E65B7
Tritanopia (blue-blind)
#984B72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a2bba;
/* rgb */ color: rgb(154, 43, 186);
/* oklch */ color: oklch(52.4% 0.219 317.3);
Tailwind
colors: {
  custom: {
    50: '#bc71cf',
    500: '#9a2bba',
    950: '#000000',
  },
}
SCSS
$custom: #9a2bba;
$custom-light: #bc71cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2bba",
  "rgb": {
    "r": 154,
    "g": 43,
    "b": 186
  },
  "hsl": {
    "h": 286.573,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52382,
    "c": 0.2188,
    "h": 317.3
  },
  "luminance": 0.12143
}

Semantic roles & 50–950 ramp

primary
#9A2BBA
secondary
#8ACA77
accent
#E64267
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9A2BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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