#9D2CA2#9D2CA2

#9D2CA2 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.4% C 0.199 H 326.2°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#9D2CA2
RGBrgb(157, 44, 162)
HSLhsl(297, 57%, 40%)
HSVhsv(297, 73%, 64%)
CMYKcmyk(3.1%, 72.8%, 0%, 36.5%)
CIE-LABlab(40.54, 60.12, -39.90)
CIE-LCHlch(40.54, 72.16, 326.43°)
OKLaboklab(51.35% 0.1653 -0.1108)
OKLCHoklch(51.35% 0.199 326.2)
XYZxyz(21.3265, 11.5795, 35.2872)
Luminance0.1158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2CA2 #31A22C
analogous
#622CA2 #9D2CA2 #A22C6C
triadic
#9D2CA2 #A29D2C #2CA29D
tetradic
#9D2CA2 #A2622C #31A22C #2C6CA2
square
#9D2CA2 #A2622C #31A22C #2C6CA2
split-complementary
#9D2CA2 #6CA22C #2CA262
monochromatic
#401242 #6E1F72 #9D2CA2 #C540CB #D470D8

Accessibility & contrast

On white

6.33
#9D2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#9D2CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2CA2
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2CA2#FFFFFF#000000##FFFFFF
##9D2CA21.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C57A5
Deuteranopia (green-blind)
#47649F
Tritanopia (blue-blind)
#A13F65
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9d2ca2;
/* rgb */ color: rgb(157, 44, 162);
/* oklch */ color: oklch(51.4% 0.199 326.2);
Tailwind
colors: {
  custom: {
    50: '#bd71be',
    500: '#9d2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #9d2ca2;
$custom-light: #bd71be;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2ca2",
  "rgb": {
    "r": 157,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 297.458,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51354,
    "c": 0.19902,
    "h": 326.2
  },
  "luminance": 0.11578
}

Semantic roles & 50–950 ramp

primary
#9D2CA2
secondary
#6EBF6A
accent
#E1474E
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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