#9E1F8F#9E1F8F

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

Color values

HEX#9E1F8F
RGBrgb(158, 31, 143)
HSLhsl(307, 67%, 37%)
HSVhsv(307, 80%, 62%)
CMYKcmyk(0%, 80.4%, 9.5%, 38%)
CIE-LABlab(38.26, 61.27, -31.99)
CIE-LCHlch(38.26, 69.11, 332.43°)
OKLaboklab(49.41% 0.1777 -0.0878)
OKLCHoklch(49.41% 0.198 333.7)
XYZxyz(19.5486, 10.2340, 26.9271)
Luminance0.1023 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F8F #1F9E2E
analogous
#6E1F9E #9E1F8F #9E1F4F
triadic
#9E1F8F #8F9E1F #1F8F9E
tetradic
#9E1F8F #9E6E1F #1F9E2E #1F4F9E
square
#9E1F8F #9E6E1F #1F9E2E #1F4F9E
split-complementary
#9E1F8F #4F9E1F #1F9E6E
monochromatic
#380B32 #6B1561 #9E1F8F #D129BD #DE59CF

Accessibility & contrast

On white

6.89
#9E1F8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9E1F8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1F8F
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F8F#FFFFFF#000000##FFFFFF
##9E1F8F1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4E92
Deuteranopia (green-blind)
#4D608C
Tritanopia (blue-blind)
#A62D57
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e1f8f;
/* rgb */ color: rgb(158, 31, 143);
/* oklch */ color: oklch(49.4% 0.198 333.7);
Tailwind
colors: {
  custom: {
    50: '#bf6bb0',
    500: '#9e1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f8f;
$custom-light: #bf6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f8f",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 307.087,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.49414,
    "c": 0.19818,
    "h": 333.7
  },
  "luminance": 0.10232
}

Semantic roles & 50–950 ramp

primary
#9E1F8F
secondary
#56C263
accent
#EA523E
background
#FCF6FA
surface
#F8ECF5
border
#D1C7CF
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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