#9A2BAB#9A2BAB

#9A2BAB is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.4% C 0.206 H 322.0°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9A2BAB
RGBrgb(154, 43, 171)
HSLhsl(292, 60%, 42%)
HSVhsv(292, 75%, 67%)
CMYKcmyk(9.9%, 74.9%, 0%, 32.9%)
CIE-LABlab(40.47, 61.42, -45.41)
CIE-LCHlch(40.47, 76.38, 323.52°)
OKLaboklab(51.39% 0.1624 -0.127)
OKLCHoklch(51.39% 0.206 322)
XYZxyz(21.5402, 11.5393, 39.6129)
Luminance0.1154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2BAB #3CAB2B
analogous
#5A2BAB #9A2BAB #AB2B7C
triadic
#9A2BAB #AB9A2B #2BAB9A
tetradic
#9A2BAB #AB5A2B #3CAB2B #2B7CAB
square
#9A2BAB #AB5A2B #3CAB2B #2B7CAB
split-complementary
#9A2BAB #7CAB2B #2BAB5A
monochromatic
#421249 #6E1F7A #9A2BAB #BD43D0 #CE74DC

Accessibility & contrast

On white

6.35
#9A2BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9A2BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2BAB
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2BAB#FFFFFF#000000##FFFFFF
##9A2BAB1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#3D63A8
Tritanopia (blue-blind)
#9C4469
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9a2bab;
/* rgb */ color: rgb(154, 43, 171);
/* oklch */ color: oklch(51.4% 0.206 322.0);
Tailwind
colors: {
  custom: {
    50: '#bc70c5',
    500: '#9a2bab',
    950: '#000000',
  },
}
SCSS
$custom: #9a2bab;
$custom-light: #bc70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2bab",
  "rgb": {
    "r": 154,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 292.031,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51386,
    "c": 0.20615,
    "h": 322
  },
  "luminance": 0.11538
}

Semantic roles & 50–950 ramp

primary
#9A2BAB
secondary
#7AC46E
accent
#E3455A
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9A2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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