#9E1F7F#9E1F7F

#9E1F7F is a mid, vivid pink. Relative luminance 0.098; OKLCH L 48.6% C 0.187 H 340.3°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#9E1F7F
RGBrgb(158, 31, 127)
HSLhsl(315, 67%, 37%)
HSVhsv(315, 80%, 62%)
CMYKcmyk(0%, 80.4%, 19.6%, 38%)
CIE-LABlab(37.45, 58.97, -23.38)
CIE-LCHlch(37.45, 63.43, 338.37°)
OKLaboklab(48.57% 0.1764 -0.0632)
OKLCHoklch(48.57% 0.187 340.3)
XYZxyz(18.4219, 9.7833, 20.9927)
Luminance0.0978 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F7F #1F9E3E
analogous
#7E1F9E #9E1F7F #9E1F3F
triadic
#9E1F7F #7F9E1F #1F7F9E
tetradic
#9E1F7F #9E7E1F #1F9E3E #1F3F9E
square
#9E1F7F #9E7E1F #1F9E3E #1F3F9E
split-complementary
#9E1F7F #3F9E1F #1F9E7E
monochromatic
#380B2D #6B1556 #9E1F7F #D129A8 #DE59BE

Accessibility & contrast

On white

7.10
#9E1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#9E1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9E1F7F
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F7F#FFFFFF#000000##FFFFFF
##9E1F7F1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B81
Deuteranopia (green-blind)
#545F7C
Tritanopia (blue-blind)
#A8244E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9e1f7f;
/* rgb */ color: rgb(158, 31, 127);
/* oklch */ color: oklch(48.6% 0.187 340.3);
Tailwind
colors: {
  custom: {
    50: '#bf6aa4',
    500: '#9e1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f7f;
$custom-light: #bf6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f7f",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 314.646,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48571,
    "c": 0.18736,
    "h": 340.3
  },
  "luminance": 0.09781
}

Semantic roles & 50–950 ramp

primary
#9E1F7F
secondary
#56C271
accent
#EA683E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9E1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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