#9E2F7A#9E2F7A

#9E2F7A is a mid, vivid pink. Relative luminance 0.107; OKLCH L 49.7% C 0.166 H 343.4°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#9E2F7A
RGBrgb(158, 47, 122)
HSLhsl(319, 54%, 40%)
HSVhsv(319, 70%, 62%)
CMYKcmyk(0%, 70.3%, 22.8%, 38%)
CIE-LABlab(39.09, 53.01, -17.75)
CIE-LCHlch(39.09, 55.90, 341.49°)
OKLaboklab(49.68% 0.1595 -0.0474)
OKLCHoklch(49.68% 0.166 343.4)
XYZxyz(18.6306, 10.7091, 19.4945)
Luminance0.1071 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F7A #2F9E53
analogous
#8A2F9E #9E2F7A #9E2F43
triadic
#9E2F7A #7A9E2F #2F7A9E
tetradic
#9E2F7A #9E8A2F #2F9E53 #2F439E
square
#9E2F7A #9E8A2F #2F9E53 #2F439E
split-complementary
#9E2F7A #439E2F #2F9E8A
monochromatic
#401331 #6F2156 #9E2F7A #C7439C #D572B5

Accessibility & contrast

On white

6.68
#9E2F7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#9E2F7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2F7A
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2F7A#FFFFFF#000000##FFFFFF
##9E2F7A1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A507C
Deuteranopia (green-blind)
#5B6377
Tritanopia (blue-blind)
#A82F50
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9e2f7a;
/* rgb */ color: rgb(158, 47, 122);
/* oklch */ color: oklch(49.7% 0.166 343.4);
Tailwind
colors: {
  custom: {
    50: '#be71a0',
    500: '#9e2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f7a;
$custom-light: #be71a0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f7a",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 319.459,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49684,
    "c": 0.16636,
    "h": 343.4
  },
  "luminance": 0.10707
}

Semantic roles & 50–950 ramp

primary
#9E2F7A
secondary
#6CBD86
accent
#DE7A4A
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080E
muted
#827B7E

Preview Lab

Preview with #9E2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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