#9E2F81#9E2F81

#9E2F81 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.0% C 0.171 H 340.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9E2F81
RGBrgb(158, 47, 129)
HSLhsl(316, 54%, 40%)
HSVhsv(316, 70%, 62%)
CMYKcmyk(0%, 70.3%, 18.4%, 38%)
CIE-LABlab(39.39, 54.00, -21.61)
CIE-LCHlch(39.39, 58.16, 338.19°)
OKLaboklab(50.01% 0.1608 -0.0583)
OKLCHoklch(50.01% 0.171 340.1)
XYZxyz(19.0800, 10.8889, 21.8615)
Luminance0.1089 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F81 #2F9E4C
analogous
#842F9E #9E2F81 #9E2F49
triadic
#9E2F81 #819E2F #2F819E
tetradic
#9E2F81 #9E842F #2F9E4C #2F499E
square
#9E2F81 #9E842F #2F9E4C #2F499E
split-complementary
#9E2F81 #499E2F #2F9E84
monochromatic
#401334 #6F215A #9E2F81 #C743A5 #D572BB

Accessibility & contrast

On white

6.61
#9E2F81 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9E2F81 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2F81
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2F81#FFFFFF#000000##FFFFFF
##9E2F811.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365183
Deuteranopia (green-blind)
#59637E
Tritanopia (blue-blind)
#A73254
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e2f81;
/* rgb */ color: rgb(158, 47, 129);
/* oklch */ color: oklch(50.0% 0.171 340.1);
Tailwind
colors: {
  custom: {
    50: '#be71a5',
    500: '#9e2f81',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f81;
$custom-light: #be71a5;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f81",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 315.676,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.50008,
    "c": 0.17099,
    "h": 340.1
  },
  "luminance": 0.10887
}

Semantic roles & 50–950 ramp

primary
#9E2F81
secondary
#6CBD81
accent
#DE714A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #9E2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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