#9F1B8D#9F1B8D

#9F1B8D is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.201 H 334.8°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#9F1B8D
RGBrgb(159, 27, 141)
HSLhsl(308, 71%, 36%)
HSVhsv(308, 83%, 62%)
CMYKcmyk(0%, 83%, 11.3%, 37.6%)
CIE-LABlab(37.99, 62.19, -31.18)
CIE-LCHlch(37.99, 69.57, 333.37°)
OKLaboklab(49.22% 0.1816 -0.0854)
OKLCHoklch(49.22% 0.201 334.8)
XYZxyz(19.4980, 10.0797, 26.1128)
Luminance0.1008 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1B8D #1B9F2D
analogous
#6F1B9F #9F1B8D #9F1B4B
triadic
#9F1B8D #8D9F1B #1B8D9F
tetradic
#9F1B8D #9F6F1B #1B9F2D #1B4B9F
square
#9F1B8D #9F6F1B #1B9F2D #1B4B9F
split-complementary
#9F1B8D #4B9F1B #1B9F6F
monochromatic
#360930 #6B125F #9F1B8D #D324BB #E253CE

Accessibility & contrast

On white

6.96
#9F1B8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#9F1B8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1B8D
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1B8D#FFFFFF#000000##FFFFFF
##9F1B8D1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194D90
Deuteranopia (green-blind)
#4E608A
Tritanopia (blue-blind)
#A72955
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f1b8d;
/* rgb */ color: rgb(159, 27, 141);
/* oklch */ color: oklch(49.2% 0.201 334.8);
Tailwind
colors: {
  custom: {
    50: '#bf6aaf',
    500: '#9f1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #9f1b8d;
$custom-light: #bf6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1b8d",
  "rgb": {
    "r": 159,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 308.182,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.49217,
    "c": 0.20065,
    "h": 334.8
  },
  "luminance": 0.10078
}

Semantic roles & 50–950 ramp

primary
#9F1B8D
secondary
#51C561
accent
#EE533A
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9F1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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