#9F1D8B#9F1D8B

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

Color values

HEX#9F1D8B
RGBrgb(159, 29, 139)
HSLhsl(309, 69%, 37%)
HSVhsv(309, 82%, 62%)
CMYKcmyk(0%, 81.8%, 12.6%, 37.6%)
CIE-LABlab(38.05, 61.41, -29.85)
CIE-LCHlch(38.05, 68.28, 334.08°)
OKLaboklab(49.23% 0.18 -0.0816)
OKLCHoklch(49.23% 0.198 335.6)
XYZxyz(19.3980, 10.1156, 25.3520)
Luminance0.1011 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1D8B #1D9F31
analogous
#721D9F #9F1D8B #9F1D4A
triadic
#9F1D8B #8B9F1D #1D8B9F
tetradic
#9F1D8B #9F721D #1D9F31 #1D4A9F
square
#9F1D8B #9F721D #1D9F31 #1D4A9F
split-complementary
#9F1D8B #4A9F1D #1D9F72
monochromatic
#370A31 #6B145E #9F1D8B #D326B8 #E056CB

Accessibility & contrast

On white

6.95
#9F1D8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F1D8B
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1D8B#FFFFFF#000000##FFFFFF
##9F1D8B1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8E
Deuteranopia (green-blind)
#4F6088
Tritanopia (blue-blind)
#A72954
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f1d8b;
/* rgb */ color: rgb(159, 29, 139);
/* oklch */ color: oklch(49.2% 0.198 335.6);
Tailwind
colors: {
  custom: {
    50: '#bf6aad',
    500: '#9f1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #9f1d8b;
$custom-light: #bf6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1d8b",
  "rgb": {
    "r": 159,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 309.231,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49229,
    "c": 0.19765,
    "h": 335.6
  },
  "luminance": 0.10114
}

Semantic roles & 50–950 ramp

primary
#9F1D8B
secondary
#54C465
accent
#EC573C
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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