#9D2AB7#9D2AB7

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

Color values

HEX#9D2AB7
RGBrgb(157, 42, 183)
HSLhsl(289, 63%, 44%)
HSVhsv(289, 77%, 72%)
CMYKcmyk(14.2%, 77%, 0%, 28.2%)
CIE-LABlab(41.60, 64.55, -50.68)
CIE-LCHlch(41.60, 82.07, 321.86°)
OKLaboklab(52.52% 0.1656 -0.1423)
OKLCHoklch(52.52% 0.218 319.3)
XYZxyz(23.2787, 12.2441, 45.9277)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2AB7 #44B72A
analogous
#572AB7 #9D2AB7 #B72A8B
triadic
#9D2AB7 #B79D2A #2AB79D
tetradic
#9D2AB7 #B7572A #44B72A #2A8BB7
square
#9D2AB7 #B7572A #44B72A #2A8BB7
split-complementary
#9D2AB7 #8BB72A #2AB757
monochromatic
#481353 #721F85 #9D2AB7 #BB49D5 #CE7BE1

Accessibility & contrast

On white

6.09
#9D2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9D2AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2AB7
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2AB7#FFFFFF#000000##FFFFFF
##9D2AB71.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#3566B4
Tritanopia (blue-blind)
#9D4870
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d2ab7;
/* rgb */ color: rgb(157, 42, 183);
/* oklch */ color: oklch(52.5% 0.218 319.3);
Tailwind
colors: {
  custom: {
    50: '#be71cd',
    500: '#9d2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ab7;
$custom-light: #be71cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ab7",
  "rgb": {
    "r": 157,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 288.936,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52524,
    "c": 0.21837,
    "h": 319.3
  },
  "luminance": 0.12243
}

Semantic roles & 50–950 ramp

primary
#9D2AB7
secondary
#84C974
accent
#E64260
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130813
muted
#827B82

Preview Lab

Preview with #9D2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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