#9D2AB6#9D2AB6

#9D2AB6 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.5% C 0.218 H 319.6°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#9D2AB6
RGBrgb(157, 42, 182)
HSLhsl(289, 63%, 44%)
HSVhsv(289, 77%, 71%)
CMYKcmyk(13.7%, 76.9%, 0%, 28.6%)
CIE-LABlab(41.54, 64.36, -50.19)
CIE-LCHlch(41.54, 81.62, 322.05°)
OKLaboklab(52.46% 0.1657 -0.1409)
OKLCHoklch(52.46% 0.218 319.6)
XYZxyz(23.1750, 12.2026, 45.3815)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2AB6 #43B62A
analogous
#572AB6 #9D2AB6 #B62A89
triadic
#9D2AB6 #B69D2A #2AB69D
tetradic
#9D2AB6 #B6572A #43B62A #2A89B6
square
#9D2AB6 #B6572A #43B62A #2A89B6
split-complementary
#9D2AB6 #89B62A #2AB657
monochromatic
#471353 #721F84 #9D2AB6 #BC48D5 #CE7AE0

Accessibility & contrast

On white

6.10
#9D2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#9D2AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2AB6
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2AB6#FFFFFF#000000##FFFFFF
##9D2AB61.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABA
Deuteranopia (green-blind)
#3666B3
Tritanopia (blue-blind)
#9D486F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d2ab6;
/* rgb */ color: rgb(157, 42, 182);
/* oklch */ color: oklch(52.5% 0.218 319.6);
Tailwind
colors: {
  custom: {
    50: '#be71cd',
    500: '#9d2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ab6;
$custom-light: #be71cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ab6",
  "rgb": {
    "r": 157,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 289.286,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.52457,
    "c": 0.21754,
    "h": 319.6
  },
  "luminance": 0.12201
}

Semantic roles & 50–950 ramp

primary
#9D2AB6
secondary
#83C873
accent
#E6425F
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130813
muted
#827B82

Preview Lab

Preview with #9D2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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