#9F1792#9F1792

#9F1792 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.3% C 0.207 H 332.9°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9F1792
RGBrgb(159, 23, 146)
HSLhsl(306, 75%, 36%)
HSVhsv(306, 86%, 62%)
CMYKcmyk(0%, 85.5%, 8.2%, 37.6%)
CIE-LABlab(37.95, 63.82, -34.30)
CIE-LCHlch(37.95, 72.45, 331.75°)
OKLaboklab(49.28% 0.1843 -0.0944)
OKLCHoklch(49.28% 0.207 332.9)
XYZxyz(19.7929, 10.0608, 28.0881)
Luminance0.1006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1792 #179F24
analogous
#68179F #9F1792 #9F174E
triadic
#9F1792 #929F17 #17929F
tetradic
#9F1792 #9F6817 #179F24 #174E9F
square
#9F1792 #9F6817 #179F24 #174E9F
split-complementary
#9F1792 #4E9F17 #179F68
monochromatic
#340830 #6A0F61 #9F1792 #D41FC3 #E54BD6

Accessibility & contrast

On white

6.97
#9F1792 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F1792
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1792#FFFFFF#000000##FFFFFF
##9F17921.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4D95
Deuteranopia (green-blind)
#4A608F
Tritanopia (blue-blind)
#A62A57
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f1792;
/* rgb */ color: rgb(159, 23, 146);
/* oklch */ color: oklch(49.3% 0.207 332.9);
Tailwind
colors: {
  custom: {
    50: '#c069b2',
    500: '#9f1792',
    950: '#000000',
  },
}
SCSS
$custom: #9f1792;
$custom-light: #c069b2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1792",
  "rgb": {
    "r": 159,
    "g": 23,
    "b": 146
  },
  "hsl": {
    "h": 305.735,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.49281,
    "c": 0.20704,
    "h": 332.9
  },
  "luminance": 0.10059
}

Semantic roles & 50–950 ramp

primary
#9F1792
secondary
#4BC757
accent
#F14836
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9F1792

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

Preview Lab → · Contrast checker → · Palette generator →

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