#9D2D9F#9D2D9F

#9D2D9F is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.3% C 0.195 H 327.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9D2D9F
RGBrgb(157, 45, 159)
HSLhsl(299, 56%, 40%)
HSVhsv(299, 72%, 62%)
CMYKcmyk(1.3%, 71.7%, 0%, 37.6%)
CIE-LABlab(40.49, 59.26, -38.17)
CIE-LCHlch(40.49, 70.49, 327.21°)
OKLaboklab(51.26% 0.1644 -0.1058)
OKLCHoklch(51.26% 0.195 327.2)
XYZxyz(21.1007, 11.5495, 33.9121)
Luminance0.1155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2D9F #2F9F2D
analogous
#642D9F #9D2D9F #9F2D68
triadic
#9D2D9F #9F9D2D #2D9F9D
tetradic
#9D2D9F #9F642D #2F9F2D #2D689F
square
#9D2D9F #9F642D #2F9F2D #2D689F
split-complementary
#9D2D9F #689F2D #2D9F64
monochromatic
#3F1240 #6E206F #9D2D9F #C740C9 #D570D6

Accessibility & contrast

On white

6.35
#9D2D9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9D2D9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2D9F
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2D9F#FFFFFF#000000##FFFFFF
##9D2D9F1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1656A2
Deuteranopia (green-blind)
#49649C
Tritanopia (blue-blind)
#A23F63
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9d2d9f;
/* rgb */ color: rgb(157, 45, 159);
/* oklch */ color: oklch(51.3% 0.195 327.2);
Tailwind
colors: {
  custom: {
    50: '#bd71bc',
    500: '#9d2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #9d2d9f;
$custom-light: #bd71bc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2d9f",
  "rgb": {
    "r": 157,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 298.947,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.51264,
    "c": 0.19548,
    "h": 327.2
  },
  "luminance": 0.11548
}

Semantic roles & 50–950 ramp

primary
#9D2D9F
secondary
#6BBE6A
accent
#DF494B
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9D2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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