#9F1795#9F1795

#9F1795 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.5% C 0.209 H 331.8°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#9F1795
RGBrgb(159, 23, 149)
HSLhsl(304, 75%, 36%)
HSVhsv(304, 86%, 62%)
CMYKcmyk(0%, 85.5%, 6.3%, 37.6%)
CIE-LABlab(38.12, 64.26, -35.86)
CIE-LCHlch(38.12, 73.59, 330.84°)
OKLaboklab(49.46% 0.1843 -0.0989)
OKLCHoklch(49.46% 0.209 331.8)
XYZxyz(20.0293, 10.1554, 29.3332)
Luminance0.1015 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1795 #179F21
analogous
#65179F #9F1795 #9F1751
triadic
#9F1795 #959F17 #17959F
tetradic
#9F1795 #9F6517 #179F21 #17519F
square
#9F1795 #9F6517 #179F21 #17519F
split-complementary
#9F1795 #519F17 #179F65
monochromatic
#340831 #6A0F63 #9F1795 #D41FC7 #E54BDA

Accessibility & contrast

On white

6.93
#9F1795 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9F1795 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1795
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1795#FFFFFF#000000##FFFFFF
##9F17951.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014E98
Deuteranopia (green-blind)
#496092
Tritanopia (blue-blind)
#A62C59
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f1795;
/* rgb */ color: rgb(159, 23, 149);
/* oklch */ color: oklch(49.5% 0.209 331.8);
Tailwind
colors: {
  custom: {
    50: '#c069b4',
    500: '#9f1795',
    950: '#000000',
  },
}
SCSS
$custom: #9f1795;
$custom-light: #c069b4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1795",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 149
  },
  "hsl": {
    "h": 304.412,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.49455,
    "c": 0.20913,
    "h": 331.8
  },
  "luminance": 0.10154
}

Semantic roles & 50–950 ramp

primary
#9F1795
secondary
#4BC754
accent
#F14436
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9F1795

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

Preview Lab → · Contrast checker → · Palette generator →

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