#9F1FA8#9F1FA8

#9F1FA8 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 51.1% C 0.217 H 325.1°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#9F1FA8
RGBrgb(159, 31, 168)
HSLhsl(296, 69%, 39%)
HSVhsv(296, 82%, 66%)
CMYKcmyk(5.4%, 81.5%, 0%, 34.1%)
CIE-LABlab(39.88, 65.45, -44.52)
CIE-LCHlch(39.88, 79.16, 325.78°)
OKLaboklab(51.07% 0.178 -0.1242)
OKLCHoklch(51.07% 0.217 325.1)
XYZxyz(21.8554, 11.1795, 38.0449)
Luminance0.1118 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1FA8 #28A81F
analogous
#5B1FA8 #9F1FA8 #A81F6D
triadic
#9F1FA8 #A89F1F #1FA89F
tetradic
#9F1FA8 #A85B1F #28A81F #1F6DA8
square
#9F1FA8 #A85B1F #28A81F #1F6DA8
split-complementary
#9F1FA8 #6DA81F #1FA85B
monochromatic
#3D0C41 #6E1574 #9F1FA8 #CD2CD8 #D960E2

Accessibility & contrast

On white

6.49
#9F1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#9F1FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1FA8
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1FA8#FFFFFF#000000##FFFFFF
##9F1FA81.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#3F63A5
Tritanopia (blue-blind)
#A33B65
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f1fa8;
/* rgb */ color: rgb(159, 31, 168);
/* oklch */ color: oklch(51.1% 0.217 325.1);
Tailwind
colors: {
  custom: {
    50: '#c06cc2',
    500: '#9f1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #9f1fa8;
$custom-light: #c06cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1fa8",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 296.058,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.51066,
    "c": 0.21705,
    "h": 325.1
  },
  "luminance": 0.11178
}

Semantic roles & 50–950 ramp

primary
#9F1FA8
secondary
#64C65D
accent
#EC3C48
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9F1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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