#9F1D98#9F1D98

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

Color values

HEX#9F1D98
RGBrgb(159, 29, 152)
HSLhsl(303, 69%, 37%)
HSVhsv(303, 82%, 62%)
CMYKcmyk(0%, 81.8%, 4.4%, 37.6%)
CIE-LABlab(38.76, 63.37, -36.67)
CIE-LCHlch(38.76, 73.21, 329.94°)
OKLaboklab(49.96% 0.1803 -0.1013)
OKLCHoklch(49.96% 0.207 330.7)
XYZxyz(20.4049, 10.5183, 30.6552)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1D98 #1D9F24
analogous
#651D9F #9F1D98 #9F1D57
triadic
#9F1D98 #989F1D #1D989F
tetradic
#9F1D98 #9F651D #1D9F24 #1D579F
square
#9F1D98 #9F651D #1D9F24 #1D579F
split-complementary
#9F1D98 #579F1D #1D9F65
monochromatic
#370A35 #6B1467 #9F1D98 #D326C9 #E056D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F1D98#FFFFFF#000000##FFFFFF
##9F1D981.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)
#05509B
Deuteranopia (green-blind)
#496195
Tritanopia (blue-blind)
#A5315B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9f1d98;
/* rgb */ color: rgb(159, 29, 152);
/* oklch */ color: oklch(50.0% 0.207 330.7);
Tailwind
colors: {
  custom: {
    50: '#bf6bb7',
    500: '#9f1d98',
    950: '#000000',
  },
}
SCSS
$custom: #9f1d98;
$custom-light: #bf6bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1d98",
  "rgb": {
    "r": 159,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 303.231,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49963,
    "c": 0.20679,
    "h": 330.7
  },
  "luminance": 0.10517
}

Semantic roles & 50–950 ramp

primary
#9F1D98
secondary
#54C45A
accent
#EC453C
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9F1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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