#9E1F8A#9E1F8A

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

Color values

HEX#9E1F8A
RGBrgb(158, 31, 138)
HSLhsl(309, 67%, 37%)
HSVhsv(309, 80%, 62%)
CMYKcmyk(0%, 80.4%, 12.7%, 38%)
CIE-LABlab(38.00, 60.52, -29.33)
CIE-LCHlch(38.00, 67.26, 334.14°)
OKLaboklab(49.14% 0.1774 -0.0802)
OKLCHoklch(49.14% 0.195 335.7)
XYZxyz(19.1783, 10.0858, 24.9765)
Luminance0.1008 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F8A #1F9E33
analogous
#731F9E #9E1F8A #9E1F4A
triadic
#9E1F8A #8A9E1F #1F8A9E
tetradic
#9E1F8A #9E731F #1F9E33 #1F4A9E
square
#9E1F8A #9E731F #1F9E33 #1F4A9E
split-complementary
#9E1F8A #4A9E1F #1F9E73
monochromatic
#380B31 #6B155D #9E1F8A #D129B7 #DE59C9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E1F8A#FFFFFF#000000##FFFFFF
##9E1F8A1.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)
#204D8D
Deuteranopia (green-blind)
#506087
Tritanopia (blue-blind)
#A62A54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e1f8a;
/* rgb */ color: rgb(158, 31, 138);
/* oklch */ color: oklch(49.1% 0.195 335.7);
Tailwind
colors: {
  custom: {
    50: '#bf6bac',
    500: '#9e1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f8a;
$custom-light: #bf6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f8a",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 309.449,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.49141,
    "c": 0.1947,
    "h": 335.7
  },
  "luminance": 0.10084
}

Semantic roles & 50–950 ramp

primary
#9E1F8A
secondary
#56C267
accent
#EA593E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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