#9F1B9B#9F1B9B

#9F1B9B is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.211 H 329.6°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#9F1B9B
RGBrgb(159, 27, 155)
HSLhsl(302, 71%, 36%)
HSVhsv(302, 83%, 62%)
CMYKcmyk(0%, 83%, 2.5%, 37.6%)
CIE-LABlab(38.77, 64.31, -38.48)
CIE-LCHlch(38.77, 74.95, 329.11°)
OKLaboklab(50.03% 0.1816 -0.1066)
OKLCHoklch(50.03% 0.211 329.6)
XYZxyz(20.6063, 10.5230, 31.9498)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1B9B #1B9F1F
analogous
#611B9F #9F1B9B #9F1B59
triadic
#9F1B9B #9B9F1B #1B9B9F
tetradic
#9F1B9B #9F611B #1B9F1F #1B599F
square
#9F1B9B #9F611B #1B9F1F #1B599F
split-complementary
#9F1B9B #599F1B #1B9F61
monochromatic
#360935 #6B1268 #9F1B9B #D324CE #E253DD

Accessibility & contrast

On white

6.77
#9F1B9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9F1B9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1B9B
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1B9B#FFFFFF#000000##FFFFFF
##9F1B9B1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#466198
Tritanopia (blue-blind)
#A5325D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f1b9b;
/* rgb */ color: rgb(159, 27, 155);
/* oklch */ color: oklch(50.0% 0.211 329.6);
Tailwind
colors: {
  custom: {
    50: '#bf6bb9',
    500: '#9f1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #9f1b9b;
$custom-light: #bf6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1b9b",
  "rgb": {
    "r": 159,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 301.818,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.50025,
    "c": 0.21053,
    "h": 329.6
  },
  "luminance": 0.10521
}

Semantic roles & 50–950 ramp

primary
#9F1B9B
secondary
#51C555
accent
#EE403A
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9F1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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