#9F1F9B#9F1F9B

#9F1F9B is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.207 H 329.6°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#9F1F9B
RGBrgb(159, 31, 155)
HSLhsl(302, 67%, 37%)
HSVhsv(302, 81%, 62%)
CMYKcmyk(0%, 80.5%, 2.5%, 37.6%)
CIE-LABlab(39.10, 63.33, -37.94)
CIE-LCHlch(39.10, 73.83, 329.07°)
OKLaboklab(50.27% 0.1788 -0.105)
OKLCHoklch(50.27% 0.207 329.6)
XYZxyz(20.7043, 10.7191, 31.9825)
Luminance0.1072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F9B #1F9F23
analogous
#631F9F #9F1F9B #9F1F5B
triadic
#9F1F9B #9B9F1F #1F9B9F
tetradic
#9F1F9B #9F631F #1F9F23 #1F5B9F
square
#9F1F9B #9F631F #1F9F23 #1F5B9F
split-complementary
#9F1F9B #5B9F1F #1F9F63
monochromatic
#390B37 #6C1569 #9F1F9B #D229CD #DF5ADB

Accessibility & contrast

On white

6.68
#9F1F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#9F1F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1F9B
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F9B#FFFFFF#000000##FFFFFF
##9F1F9B1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519E
Deuteranopia (green-blind)
#486298
Tritanopia (blue-blind)
#A5345E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f1f9b;
/* rgb */ color: rgb(159, 31, 155);
/* oklch */ color: oklch(50.3% 0.207 329.6);
Tailwind
colors: {
  custom: {
    50: '#bf6cb9',
    500: '#9f1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f9b;
$custom-light: #bf6cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f9b",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 301.875,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.50265,
    "c": 0.20733,
    "h": 329.6
  },
  "luminance": 0.10717
}

Semantic roles & 50–950 ramp

primary
#9F1F9B
secondary
#57C35A
accent
#EA433E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9F1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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