#9E2F7D#9E2F7D

#9E2F7D is a mid, vivid pink. Relative luminance 0.108; OKLCH L 49.8% C 0.168 H 342.0°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#9E2F7D
RGBrgb(158, 47, 125)
HSLhsl(318, 54%, 40%)
HSVhsv(318, 70%, 62%)
CMYKcmyk(0%, 70.3%, 20.9%, 38%)
CIE-LABlab(39.22, 53.43, -19.41)
CIE-LCHlch(39.22, 56.84, 340.03°)
OKLaboklab(49.82% 0.1601 -0.0521)
OKLCHoklch(49.82% 0.168 342)
XYZxyz(18.8193, 10.7846, 20.4886)
Luminance0.1078 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F7D #2F9E50
analogous
#872F9E #9E2F7D #9E2F45
triadic
#9E2F7D #7D9E2F #2F7D9E
tetradic
#9E2F7D #9E872F #2F9E50 #2F459E
square
#9E2F7D #9E872F #2F9E50 #2F459E
split-complementary
#9E2F7D #459E2F #2F9E87
monochromatic
#401332 #6F2158 #9E2F7D #C743A0 #D572B8

Accessibility & contrast

On white

6.65
#9E2F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9E2F7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2F7D
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2F7D#FFFFFF#000000##FFFFFF
##9E2F7D1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38517F
Deuteranopia (green-blind)
#5A637A
Tritanopia (blue-blind)
#A83052
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9e2f7d;
/* rgb */ color: rgb(158, 47, 125);
/* oklch */ color: oklch(49.8% 0.168 342.0);
Tailwind
colors: {
  custom: {
    50: '#be71a2',
    500: '#9e2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f7d;
$custom-light: #be71a2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f7d",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 317.838,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49821,
    "c": 0.1683,
    "h": 342
  },
  "luminance": 0.10783
}

Semantic roles & 50–950 ramp

primary
#9E2F7D
secondary
#6CBD84
accent
#DE764A
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #9E2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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