#9A2DAB#9A2DAB

#9A2DAB is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.6% C 0.204 H 321.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#9A2DAB
RGBrgb(154, 45, 171)
HSLhsl(292, 58%, 42%)
HSVhsv(292, 74%, 67%)
CMYKcmyk(9.9%, 73.7%, 0%, 32.9%)
CIE-LABlab(40.72, 60.73, -45.02)
CIE-LCHlch(40.72, 75.59, 323.45°)
OKLaboklab(51.56% 0.1605 -0.1259)
OKLCHoklch(51.56% 0.204 321.9)
XYZxyz(21.6147, 11.6883, 39.6377)
Luminance0.1169 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2DAB #3EAB2D
analogous
#5B2DAB #9A2DAB #AB2D7D
triadic
#9A2DAB #AB9A2D #2DAB9A
tetradic
#9A2DAB #AB5B2D #3EAB2D #2D7DAB
square
#9A2DAB #AB5B2D #3EAB2D #2D7DAB
split-complementary
#9A2DAB #7DAB2D #2DAB5B
monochromatic
#43144A #6E207B #9A2DAB #BC47CE #CE77DB

Accessibility & contrast

On white

6.29
#9A2DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9A2DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2DAB
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2DAB#FFFFFF#000000##FFFFFF
##9A2DAB1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#3E64A8
Tritanopia (blue-blind)
#9C456A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9a2dab;
/* rgb */ color: rgb(154, 45, 171);
/* oklch */ color: oklch(51.6% 0.204 321.9);
Tailwind
colors: {
  custom: {
    50: '#bb71c5',
    500: '#9a2dab',
    950: '#000000',
  },
}
SCSS
$custom: #9a2dab;
$custom-light: #bb71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2dab",
  "rgb": {
    "r": 154,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 291.905,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51558,
    "c": 0.20399,
    "h": 321.9
  },
  "luminance": 0.11687
}

Semantic roles & 50–950 ramp

primary
#9A2DAB
secondary
#7CC371
accent
#E2465B
background
#FBF7FC
surface
#F7EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9A2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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