#9F1B8B#9F1B8B

#9F1B8B is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.1% C 0.199 H 335.6°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9F1B8B
RGBrgb(159, 27, 139)
HSLhsl(309, 71%, 36%)
HSVhsv(309, 83%, 62%)
CMYKcmyk(0%, 83%, 12.6%, 37.6%)
CIE-LABlab(37.88, 61.90, -30.12)
CIE-LCHlch(37.88, 68.84, 334.05°)
OKLaboklab(49.11% 0.1815 -0.0824)
OKLCHoklch(49.11% 0.199 335.6)
XYZxyz(19.3505, 10.0207, 25.3362)
Luminance0.1002 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1B8B #1B9F2F
analogous
#711B9F #9F1B8B #9F1B49
triadic
#9F1B8B #8B9F1B #1B8B9F
tetradic
#9F1B8B #9F711B #1B9F2F #1B499F
square
#9F1B8B #9F711B #1B9F2F #1B499F
split-complementary
#9F1B8B #499F1B #1B9F71
monochromatic
#360930 #6B125D #9F1B8B #D324B9 #E253CC

Accessibility & contrast

On white

6.99
#9F1B8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#9F1B8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1B8B
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1B8B#FFFFFF#000000##FFFFFF
##9F1B8B1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4D8E
Deuteranopia (green-blind)
#4F6088
Tritanopia (blue-blind)
#A72854
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f1b8b;
/* rgb */ color: rgb(159, 27, 139);
/* oklch */ color: oklch(49.1% 0.199 335.6);
Tailwind
colors: {
  custom: {
    50: '#bf6aad',
    500: '#9f1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #9f1b8b;
$custom-light: #bf6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1b8b",
  "rgb": {
    "r": 159,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 309.091,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.49108,
    "c": 0.19929,
    "h": 335.6
  },
  "luminance": 0.10019
}

Semantic roles & 50–950 ramp

primary
#9F1B8B
secondary
#51C563
accent
#EE553A
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9F1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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