#9F1B98#9F1B98

#9F1B98 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.8% C 0.208 H 330.7°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#9F1B98
RGBrgb(159, 27, 152)
HSLhsl(303, 71%, 36%)
HSVhsv(303, 83%, 62%)
CMYKcmyk(0%, 83%, 4.4%, 37.6%)
CIE-LABlab(38.59, 63.85, -36.94)
CIE-LCHlch(38.59, 73.76, 329.95°)
OKLaboklab(49.85% 0.1817 -0.1021)
OKLCHoklch(49.85% 0.208 330.7)
XYZxyz(20.3575, 10.4235, 30.6394)
Luminance0.1042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1B98 #1B9F22
analogous
#641B9F #9F1B98 #9F1B56
triadic
#9F1B98 #989F1B #1B989F
tetradic
#9F1B98 #9F641B #1B9F22 #1B569F
square
#9F1B98 #9F641B #1B9F22 #1B569F
split-complementary
#9F1B98 #569F1B #1B9F64
monochromatic
#360934 #6B1266 #9F1B98 #D324CA #E253DA

Accessibility & contrast

On white

6.81
#9F1B98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9F1B98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1B98
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1B98#FFFFFF#000000##FFFFFF
##9F1B981.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509B
Deuteranopia (green-blind)
#486195
Tritanopia (blue-blind)
#A5305B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f1b98;
/* rgb */ color: rgb(159, 27, 152);
/* oklch */ color: oklch(49.8% 0.208 330.7);
Tailwind
colors: {
  custom: {
    50: '#bf6ab7',
    500: '#9f1b98',
    950: '#000000',
  },
}
SCSS
$custom: #9f1b98;
$custom-light: #bf6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1b98",
  "rgb": {
    "r": 159,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 303.182,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.49846,
    "c": 0.20836,
    "h": 330.7
  },
  "luminance": 0.10422
}

Semantic roles & 50–950 ramp

primary
#9F1B98
secondary
#51C557
accent
#EE443A
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9F1B98

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

Preview Lab → · Contrast checker → · Palette generator →

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