#9D2AB1#9D2AB1

#9D2AB1 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.1% C 0.213 H 321.2°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9D2AB1
RGBrgb(157, 42, 177)
HSLhsl(291, 62%, 43%)
HSVhsv(291, 76%, 69%)
CMYKcmyk(11.3%, 76.3%, 0%, 30.6%)
CIE-LABlab(41.22, 63.45, -47.76)
CIE-LCHlch(41.22, 79.41, 323.03°)
OKLaboklab(52.13% 0.1663 -0.1338)
OKLCHoklch(52.13% 0.213 321.2)
XYZxyz(22.6675, 11.9996, 42.7086)
Luminance0.1200 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2AB1 #3EB12A
analogous
#592AB1 #9D2AB1 #B12A81
triadic
#9D2AB1 #B19D2A #2AB19D
tetradic
#9D2AB1 #B1592A #3EB12A #2A81B1
square
#9D2AB1 #B1592A #3EB12A #2A81B1
split-complementary
#9D2AB1 #81B12A #2AB159
monochromatic
#45134E #711E80 #9D2AB1 #BE45D3 #CF77DF

Accessibility & contrast

On white

6.18
#9D2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9D2AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2AB1
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2AB1#FFFFFF#000000##FFFFFF
##9D2AB11.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B5
Deuteranopia (green-blind)
#3B65AE
Tritanopia (blue-blind)
#9E456C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d2ab1;
/* rgb */ color: rgb(157, 42, 177);
/* oklch */ color: oklch(52.1% 0.213 321.2);
Tailwind
colors: {
  custom: {
    50: '#be71c9',
    500: '#9d2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ab1;
$custom-light: #be71c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ab1",
  "rgb": {
    "r": 157,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 291.111,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52127,
    "c": 0.2134,
    "h": 321.2
  },
  "luminance": 0.11998
}

Semantic roles & 50–950 ramp

primary
#9D2AB1
secondary
#7DC670
accent
#E5435B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9D2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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