#9D1FA6#9D1FA6

#9D1FA6 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.6% C 0.215 H 325.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#9D1FA6
RGBrgb(157, 31, 166)
HSLhsl(296, 69%, 39%)
HSVhsv(296, 81%, 65%)
CMYKcmyk(5.4%, 81.3%, 0%, 34.9%)
CIE-LABlab(39.42, 64.73, -44.09)
CIE-LCHlch(39.42, 78.32, 325.74°)
OKLaboklab(50.63% 0.176 -0.123)
OKLCHoklch(50.63% 0.215 325.1)
XYZxyz(21.2770, 10.9027, 37.0528)
Luminance0.1090 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1FA6 #28A61F
analogous
#591FA6 #9D1FA6 #A61F6B
triadic
#9D1FA6 #A69D1F #1FA69D
tetradic
#9D1FA6 #A6591F #28A61F #1F6BA6
square
#9D1FA6 #A6591F #28A61F #1F6BA6
split-complementary
#9D1FA6 #6BA61F #1FA659
monochromatic
#3B0C3F #6C1572 #9D1FA6 #CC2BD7 #D85EE1

Accessibility & contrast

On white

6.60
#9D1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9D1FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1FA6
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1FA6#FFFFFF#000000##FFFFFF
##9D1FA61.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#3E62A3
Tritanopia (blue-blind)
#A13A64
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d1fa6;
/* rgb */ color: rgb(157, 31, 166);
/* oklch */ color: oklch(50.6% 0.215 325.1);
Tailwind
colors: {
  custom: {
    50: '#be6cc1',
    500: '#9d1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #9d1fa6;
$custom-light: #be6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1fa6",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 296,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50632,
    "c": 0.2147,
    "h": 325.1
  },
  "luminance": 0.10901
}

Semantic roles & 50–950 ramp

primary
#9D1FA6
secondary
#62C55B
accent
#EB3C48
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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