#9D2ABC#9D2ABC

#9D2ABC is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.9% C 0.223 H 317.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9D2ABC
RGBrgb(157, 42, 188)
HSLhsl(287, 63%, 45%)
HSVhsv(287, 78%, 74%)
CMYKcmyk(16.5%, 77.7%, 0%, 26.3%)
CIE-LABlab(41.93, 65.48, -53.09)
CIE-LCHlch(41.93, 84.30, 320.97°)
OKLaboklab(52.86% 0.165 -0.1494)
OKLCHoklch(52.86% 0.223 317.8)
XYZxyz(23.8084, 12.4560, 48.7173)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2ABC #49BC2A
analogous
#542ABC #9D2ABC #BC2A92
triadic
#9D2ABC #BC9D2A #2ABC9D
tetradic
#9D2ABC #BC542A #49BC2A #2A92BC
square
#9D2ABC #BC542A #49BC2A #2A92BC
split-complementary
#9D2ABC #92BC2A #2ABC54
monochromatic
#491458 #731F8A #9D2ABC #BA4CD7 #CD7EE2

Accessibility & contrast

On white

6.02
#9D2ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9D2ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2ABC
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2ABC#FFFFFF#000000##FFFFFF
##9D2ABC1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#3066B9
Tritanopia (blue-blind)
#9C4A73
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d2abc;
/* rgb */ color: rgb(157, 42, 188);
/* oklch */ color: oklch(52.9% 0.223 317.8);
Tailwind
colors: {
  custom: {
    50: '#be71d1',
    500: '#9d2abc',
    950: '#000000',
  },
}
SCSS
$custom: #9d2abc;
$custom-light: #be71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2abc",
  "rgb": {
    "r": 157,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 287.26,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52862,
    "c": 0.22256,
    "h": 317.8
  },
  "luminance": 0.12455
}

Semantic roles & 50–950 ramp

primary
#9D2ABC
secondary
#89CB77
accent
#E74164
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D2ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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