#9A2ABA#9A2ABA

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

Color values

HEX#9A2ABA
RGBrgb(154, 42, 186)
HSLhsl(287, 63%, 45%)
HSVhsv(287, 77%, 73%)
CMYKcmyk(17.2%, 77.4%, 0%, 27.1%)
CIE-LABlab(41.33, 64.54, -52.91)
CIE-LCHlch(41.33, 83.45, 320.66°)
OKLaboklab(52.3% 0.1616 -0.149)
OKLCHoklch(52.3% 0.22 317.3)
XYZxyz(23.0160, 12.0721, 47.5626)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2ABA #4ABA2A
analogous
#522ABA #9A2ABA #BA2A92
triadic
#9A2ABA #BA9A2A #2ABA9A
tetradic
#9A2ABA #BA522A #4ABA2A #2A92BA
square
#9A2ABA #BA522A #4ABA2A #2A92BA
split-complementary
#9A2ABA #92BA2A #2ABA52
monochromatic
#471356 #711F88 #9A2ABA #B74BD6 #CB7DE2

Accessibility & contrast

On white

6.15
#9A2ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9A2ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2ABA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2ABA#FFFFFF#000000##FFFFFF
##9A2ABA1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#2D65B7
Tritanopia (blue-blind)
#984A72
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9a2aba;
/* rgb */ color: rgb(154, 42, 186);
/* oklch */ color: oklch(52.3% 0.220 317.3);
Tailwind
colors: {
  custom: {
    50: '#bc71cf',
    500: '#9a2aba',
    950: '#000000',
  },
}
SCSS
$custom: #9a2aba;
$custom-light: #bc71cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2aba",
  "rgb": {
    "r": 154,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 286.667,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52302,
    "c": 0.21978,
    "h": 317.3
  },
  "luminance": 0.12071
}

Semantic roles & 50–950 ramp

primary
#9A2ABA
secondary
#89CA76
accent
#E64266
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #9A2ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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