#9F1F8B#9F1F8B

#9F1F8B is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.4% C 0.196 H 335.6°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#9F1F8B
RGBrgb(159, 31, 139)
HSLhsl(309, 67%, 37%)
HSVhsv(309, 81%, 62%)
CMYKcmyk(0%, 80.5%, 12.6%, 37.6%)
CIE-LABlab(38.23, 60.89, -29.57)
CIE-LCHlch(38.23, 67.69, 334.10°)
OKLaboklab(49.36% 0.1785 -0.0808)
OKLCHoklch(49.36% 0.196 335.6)
XYZxyz(19.4486, 10.2168, 25.3689)
Luminance0.1022 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1F8B #1F9F33
analogous
#731F9F #9F1F8B #9F1F4B
triadic
#9F1F8B #8B9F1F #1F8B9F
tetradic
#9F1F8B #9F731F #1F9F33 #1F4B9F
square
#9F1F8B #9F731F #1F9F33 #1F4B9F
split-complementary
#9F1F8B #4B9F1F #1F9F73
monochromatic
#390B31 #6C155E #9F1F8B #D229B8 #DF5ACA

Accessibility & contrast

On white

6.90
#9F1F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9F1F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1F8B
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1F8B#FFFFFF#000000##FFFFFF
##9F1F8B1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204E8E
Deuteranopia (green-blind)
#506188
Tritanopia (blue-blind)
#A72B54
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f1f8b;
/* rgb */ color: rgb(159, 31, 139);
/* oklch */ color: oklch(49.4% 0.196 335.6);
Tailwind
colors: {
  custom: {
    50: '#bf6bad',
    500: '#9f1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #9f1f8b;
$custom-light: #bf6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1f8b",
  "rgb": {
    "r": 159,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 309.375,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49358,
    "c": 0.19592,
    "h": 335.6
  },
  "luminance": 0.10215
}

Semantic roles & 50–950 ramp

primary
#9F1F8B
secondary
#57C368
accent
#EA593E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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