#9E1F98#9E1F98

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

Color values

HEX#9E1F98
RGBrgb(158, 31, 152)
HSLhsl(303, 67%, 37%)
HSVhsv(303, 80%, 62%)
CMYKcmyk(0%, 80.4%, 3.8%, 38%)
CIE-LABlab(38.76, 62.65, -36.69)
CIE-LCHlch(38.76, 72.60, 329.65°)
OKLaboklab(49.93% 0.1778 -0.1014)
OKLCHoklch(49.93% 0.205 330.3)
XYZxyz(20.2580, 10.5177, 30.6628)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F98 #1F9E25
analogous
#651F9E #9E1F98 #9E1F58
triadic
#9E1F98 #989E1F #1F989E
tetradic
#9E1F98 #9E651F #1F9E25 #1F589E
square
#9E1F98 #9E651F #1F9E25 #1F589E
split-complementary
#9E1F98 #589E1F #1F9E65
monochromatic
#380B36 #6B1567 #9E1F98 #D129C9 #DE59D8

Accessibility & contrast

On white

6.77
#9E1F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E1F98
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F98#FFFFFF#000000##FFFFFF
##9E1F981.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07509B
Deuteranopia (green-blind)
#496195
Tritanopia (blue-blind)
#A4325C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9e1f98;
/* rgb */ color: rgb(158, 31, 152);
/* oklch */ color: oklch(49.9% 0.205 330.3);
Tailwind
colors: {
  custom: {
    50: '#bf6cb7',
    500: '#9e1f98',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f98;
$custom-light: #bf6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f98",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 302.835,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.49929,
    "c": 0.20466,
    "h": 330.3
  },
  "luminance": 0.10516
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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