#9E1F87#9E1F87

#9E1F87 is a mid, vivid pink. Relative luminance 0.100; OKLCH L 49.0% C 0.193 H 336.9°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#9E1F87
RGBrgb(158, 31, 135)
HSLhsl(311, 67%, 37%)
HSVhsv(311, 80%, 62%)
CMYKcmyk(0%, 80.4%, 14.6%, 38%)
CIE-LABlab(37.84, 60.09, -27.73)
CIE-LCHlch(37.84, 66.18, 335.23°)
OKLaboklab(48.98% 0.1772 -0.0756)
OKLCHoklch(48.98% 0.193 336.9)
XYZxyz(18.9641, 10.0002, 23.8484)
Luminance0.1000 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F87 #1F9E36
analogous
#761F9E #9E1F87 #9E1F48
triadic
#9E1F87 #879E1F #1F879E
tetradic
#9E1F87 #9E761F #1F9E36 #1F489E
square
#9E1F87 #9E761F #1F9E36 #1F489E
split-complementary
#9E1F87 #489E1F #1F9E76
monochromatic
#380B30 #6B155B #9E1F87 #D129B3 #DE59C6

Accessibility & contrast

On white

7.00
#9E1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#9E1F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1F87
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F87#FFFFFF#000000##FFFFFF
##9E1F871.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234D8A
Deuteranopia (green-blind)
#516084
Tritanopia (blue-blind)
#A72952
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e1f87;
/* rgb */ color: rgb(158, 31, 135);
/* oklch */ color: oklch(49.0% 0.193 336.9);
Tailwind
colors: {
  custom: {
    50: '#bf6baa',
    500: '#9e1f87',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f87;
$custom-light: #bf6baa;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f87",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 310.866,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48981,
    "c": 0.19264,
    "h": 336.9
  },
  "luminance": 0.09998
}

Semantic roles & 50–950 ramp

primary
#9E1F87
secondary
#56C26A
accent
#EA5D3E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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