#9A2ABC#9A2ABC

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

Color values

HEX#9A2ABC
RGBrgb(154, 42, 188)
HSLhsl(286, 63%, 45%)
HSVhsv(286, 78%, 74%)
CMYKcmyk(18.1%, 77.7%, 0%, 26.3%)
CIE-LABlab(41.47, 64.92, -53.86)
CIE-LCHlch(41.47, 84.35, 320.32°)
OKLaboklab(52.44% 0.1613 -0.1518)
OKLCHoklch(52.44% 0.221 316.7)
XYZxyz(23.2301, 12.1578, 48.6902)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2ABC #4CBC2A
analogous
#512ABC #9A2ABC #BC2A95
triadic
#9A2ABC #BC9A2A #2ABC9A
tetradic
#9A2ABC #BC512A #4CBC2A #2A95BC
square
#9A2ABC #BC512A #4CBC2A #2A95BC
split-complementary
#9A2ABC #95BC2A #2ABC51
monochromatic
#481458 #711F8A #9A2ABC #B74CD7 #CB7EE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A2ABC#FFFFFF#000000##FFFFFF
##9A2ABC1.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)
#005BC0
Deuteranopia (green-blind)
#2B65B9
Tritanopia (blue-blind)
#984B73
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a2abc;
/* rgb */ color: rgb(154, 42, 188);
/* oklch */ color: oklch(52.4% 0.221 316.7);
Tailwind
colors: {
  custom: {
    50: '#bc71d1',
    500: '#9a2abc',
    950: '#000000',
  },
}
SCSS
$custom: #9a2abc;
$custom-light: #bc71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2abc",
  "rgb": {
    "r": 154,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 286.027,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52441,
    "c": 0.22148,
    "h": 316.7
  },
  "luminance": 0.12157
}

Semantic roles & 50–950 ramp

primary
#9A2ABC
secondary
#8BCB77
accent
#E74168
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9A2ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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