#9E1F97#9E1F97

#9E1F97 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.9% C 0.204 H 330.7°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#9E1F97
RGBrgb(158, 31, 151)
HSLhsl(303, 67%, 37%)
HSVhsv(303, 80%, 62%)
CMYKcmyk(0%, 80.4%, 4.4%, 38%)
CIE-LABlab(38.70, 62.49, -36.17)
CIE-LCHlch(38.70, 72.21, 329.94°)
OKLaboklab(49.87% 0.1778 -0.0999)
OKLCHoklch(49.87% 0.204 330.7)
XYZxyz(20.1764, 10.4851, 30.2333)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F97 #1F9E26
analogous
#661F9E #9E1F97 #9E1F58
triadic
#9E1F97 #979E1F #1F979E
tetradic
#9E1F97 #9E661F #1F9E26 #1F589E
square
#9E1F97 #9E661F #1F9E26 #1F589E
split-complementary
#9E1F97 #589E1F #1F9E66
monochromatic
#380B35 #6B1566 #9E1F97 #D129C8 #DE59D7

Accessibility & contrast

On white

6.78
#9E1F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9E1F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1F97
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F97#FFFFFF#000000##FFFFFF
##9E1F971.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A509A
Deuteranopia (green-blind)
#496194
Tritanopia (blue-blind)
#A4325B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e1f97;
/* rgb */ color: rgb(158, 31, 151);
/* oklch */ color: oklch(49.9% 0.204 330.7);
Tailwind
colors: {
  custom: {
    50: '#bf6bb6',
    500: '#9e1f97',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f97;
$custom-light: #bf6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f97",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 303.307,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4987,
    "c": 0.20393,
    "h": 330.7
  },
  "luminance": 0.10483
}

Semantic roles & 50–950 ramp

primary
#9E1F97
secondary
#56C25C
accent
#EA473E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9E1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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