#9F1791#9F1791

#9F1791 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.2% C 0.206 H 333.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9F1791
RGBrgb(159, 23, 145)
HSLhsl(306, 75%, 36%)
HSVhsv(306, 86%, 62%)
CMYKcmyk(0%, 85.5%, 8.8%, 37.6%)
CIE-LABlab(37.90, 63.67, -33.77)
CIE-LCHlch(37.90, 72.07, 332.06°)
OKLaboklab(49.22% 0.1843 -0.0929)
OKLCHoklch(49.22% 0.206 333.2)
XYZxyz(19.7155, 10.0298, 27.6802)
Luminance0.1003 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1791 #179F25
analogous
#69179F #9F1791 #9F174D
triadic
#9F1791 #919F17 #17919F
tetradic
#9F1791 #9F6917 #179F25 #174D9F
square
#9F1791 #9F6917 #179F25 #174D9F
split-complementary
#9F1791 #4D9F17 #179F69
monochromatic
#34082F #6A0F60 #9F1791 #D41FC2 #E54BD5

Accessibility & contrast

On white

6.99
#9F1791 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9F1791 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1791
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1791#FFFFFF#000000##FFFFFF
##9F17911.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4D94
Deuteranopia (green-blind)
#4B608E
Tritanopia (blue-blind)
#A72956
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f1791;
/* rgb */ color: rgb(159, 23, 145);
/* oklch */ color: oklch(49.2% 0.206 333.2);
Tailwind
colors: {
  custom: {
    50: '#c069b1',
    500: '#9f1791',
    950: '#000000',
  },
}
SCSS
$custom: #9f1791;
$custom-light: #c069b1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1791",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 145
  },
  "hsl": {
    "h": 306.176,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.49224,
    "c": 0.20636,
    "h": 333.2
  },
  "luminance": 0.10028
}

Semantic roles & 50–950 ramp

primary
#9F1791
secondary
#4BC758
accent
#F14A36
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9F1791

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

Preview Lab → · Contrast checker → · Palette generator →

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