#9F1D8A#9F1D8A

#9F1D8A is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.2% C 0.197 H 336.0°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#9F1D8A
RGBrgb(159, 29, 138)
HSLhsl(310, 69%, 37%)
HSVhsv(310, 82%, 62%)
CMYKcmyk(0%, 81.8%, 13.2%, 37.6%)
CIE-LABlab(38.00, 61.27, -29.32)
CIE-LCHlch(38.00, 67.92, 334.43°)
OKLaboklab(49.18% 0.18 -0.0801)
OKLCHoklch(49.18% 0.197 336)
XYZxyz(19.3252, 10.0865, 24.9689)
Luminance0.1008 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1D8A #1D9F32
analogous
#731D9F #9F1D8A #9F1D49
triadic
#9F1D8A #8A9F1D #1D8A9F
tetradic
#9F1D8A #9F731D #1D9F32 #1D499F
square
#9F1D8A #9F731D #1D9F32 #1D499F
split-complementary
#9F1D8A #499F1D #1D9F73
monochromatic
#370A30 #6B145D #9F1D8A #D326B7 #E056CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F1D8A#FFFFFF#000000##FFFFFF
##9F1D8A1.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)
#1F4D8D
Deuteranopia (green-blind)
#506087
Tritanopia (blue-blind)
#A72953
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f1d8a;
/* rgb */ color: rgb(159, 29, 138);
/* oklch */ color: oklch(49.2% 0.197 336.0);
Tailwind
colors: {
  custom: {
    50: '#bf6aac',
    500: '#9f1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #9f1d8a;
$custom-light: #bf6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1d8a",
  "rgb": {
    "r": 159,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 309.692,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49175,
    "c": 0.19697,
    "h": 336
  },
  "luminance": 0.10085
}

Semantic roles & 50–950 ramp

primary
#9F1D8A
secondary
#54C466
accent
#EC583C
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9F1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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