#9D1FA8#9D1FA8

#9D1FA8 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.8% C 0.216 H 324.4°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#9D1FA8
RGBrgb(157, 31, 168)
HSLhsl(295, 69%, 39%)
HSVhsv(295, 82%, 66%)
CMYKcmyk(6.5%, 81.5%, 0%, 34.1%)
CIE-LABlab(39.54, 65.07, -45.08)
CIE-LCHlch(39.54, 79.16, 325.28°)
OKLaboklab(50.76% 0.1758 -0.1259)
OKLCHoklch(50.76% 0.216 324.4)
XYZxyz(21.4619, 10.9766, 38.0265)
Luminance0.1098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1FA8 #2AA81F
analogous
#581FA8 #9D1FA8 #A81F6F
triadic
#9D1FA8 #A89D1F #1FA89D
tetradic
#9D1FA8 #A8581F #2AA81F #1F6FA8
square
#9D1FA8 #A8581F #2AA81F #1F6FA8
split-complementary
#9D1FA8 #6FA81F #1FA858
monochromatic
#3C0C41 #6D1574 #9D1FA8 #CA2CD8 #D760E2

Accessibility & contrast

On white

6.57
#9D1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#9D1FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1FA8
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1FA8#FFFFFF#000000##FFFFFF
##9D1FA81.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#3D62A5
Tritanopia (blue-blind)
#A03B65
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d1fa8;
/* rgb */ color: rgb(157, 31, 168);
/* oklch */ color: oklch(50.8% 0.216 324.4);
Tailwind
colors: {
  custom: {
    50: '#be6cc2',
    500: '#9d1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #9d1fa8;
$custom-light: #be6cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1fa8",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 295.182,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.50761,
    "c": 0.21623,
    "h": 324.4
  },
  "luminance": 0.10975
}

Semantic roles & 50–950 ramp

primary
#9D1FA8
secondary
#65C65D
accent
#EC3C4A
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9D1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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