#9F2E7F#9F2E7F

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

Color values

HEX#9F2E7F
RGBrgb(159, 46, 127)
HSLhsl(317, 55%, 40%)
HSVhsv(317, 71%, 62%)
CMYKcmyk(0%, 71.1%, 20.1%, 37.6%)
CIE-LABlab(39.34, 54.35, -20.44)
CIE-LCHlch(39.34, 58.07, 339.39°)
OKLaboklab(49.98% 0.1626 -0.0549)
OKLCHoklch(49.98% 0.172 341.3)
XYZxyz(19.1064, 10.8591, 21.1643)
Luminance0.1086 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2E7F #2E9F4E
analogous
#862E9F #9F2E7F #9F2E47
triadic
#9F2E7F #7F9F2E #2E7F9F
tetradic
#9F2E7F #9F862E #2E9F4E #2E479F
square
#9F2E7F #9F862E #2E9F4E #2E479F
split-complementary
#9F2E7F #479F2E #2E9F86
monochromatic
#401333 #702059 #9F2E7F #C842A2 #D671BA

Accessibility & contrast

On white

6.62
#9F2E7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9F2E7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2E7F
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2E7F#FFFFFF#000000##FFFFFF
##9F2E7F1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375181
Deuteranopia (green-blind)
#5A637C
Tritanopia (blue-blind)
#A93052
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f2e7f;
/* rgb */ color: rgb(159, 46, 127);
/* oklch */ color: oklch(50.0% 0.172 341.3);
Tailwind
colors: {
  custom: {
    50: '#bf71a4',
    500: '#9f2e7f',
    950: '#000000',
  },
}
SCSS
$custom: #9f2e7f;
$custom-light: #bf71a4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2e7f",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 316.991,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49975,
    "c": 0.17159,
    "h": 341.3
  },
  "luminance": 0.10857
}

Semantic roles & 50–950 ramp

primary
#9F2E7F
secondary
#6BBE83
accent
#DE7449
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #9F2E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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