#9D1D9E#9D1D9E

#9D1D9E is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.210 H 327.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#9D1D9E
RGBrgb(157, 29, 158)
HSLhsl(300, 69%, 37%)
HSVhsv(300, 82%, 62%)
CMYKcmyk(0.6%, 81.6%, 0%, 38%)
CIE-LABlab(38.75, 63.92, -40.33)
CIE-LCHlch(38.75, 75.58, 327.75°)
OKLaboklab(50.01% 0.178 -0.112)
OKLCHoklch(50.01% 0.21 327.8)
XYZxyz(20.5153, 10.5170, 33.2906)
Luminance0.1051 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1D9E #1E9E1D
analogous
#5D1D9E #9D1D9E #9E1D5F
triadic
#9D1D9E #9E9D1D #1D9E9D
tetradic
#9D1D9E #9E5D1D #1E9E1D #1D5F9E
square
#9D1D9E #9E5D1D #1E9E1D #1D5F9E
split-complementary
#9D1D9E #5F9E1D #1D9E5D
monochromatic
#360A37 #6A146A #9D1D9E #D026D2 #DF56E0

Accessibility & contrast

On white

6.77
#9D1D9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9D1D9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1D9E
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1D9E#FFFFFF#000000##FFFFFF
##9D1D9E1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A1
Deuteranopia (green-blind)
#43619B
Tritanopia (blue-blind)
#A2355F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d1d9e;
/* rgb */ color: rgb(157, 29, 158);
/* oklch */ color: oklch(50.0% 0.210 327.8);
Tailwind
colors: {
  custom: {
    50: '#be6bbb',
    500: '#9d1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #9d1d9e;
$custom-light: #be6bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1d9e",
  "rgb": {
    "r": 157,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 299.535,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.50008,
    "c": 0.21028,
    "h": 327.8
  },
  "luminance": 0.10515
}

Semantic roles & 50–950 ramp

primary
#9D1D9E
secondary
#54C354
accent
#EC3C3D
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130812
muted
#827A81

Preview Lab

Preview with #9D1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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