#9F2F8B#9F2F8B

#9F2F8B is a mid, vivid pink. Relative luminance 0.113; OKLCH L 50.7% C 0.179 H 335.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#9F2F8B
RGBrgb(159, 47, 139)
HSLhsl(311, 54%, 40%)
HSVhsv(311, 70%, 62%)
CMYKcmyk(0%, 70.4%, 12.6%, 37.6%)
CIE-LABlab(40.03, 55.76, -26.75)
CIE-LCHlch(40.03, 61.84, 334.37°)
OKLaboklab(50.66% 0.1632 -0.0728)
OKLCHoklch(50.66% 0.179 335.9)
XYZxyz(19.9751, 11.2698, 25.5444)
Luminance0.1127 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2F8B #2F9F43
analogous
#7B2F9F #9F2F8B #9F2F53
triadic
#9F2F8B #8B9F2F #2F8B9F
tetradic
#9F2F8B #9F7B2F #2F9F43 #2F539F
square
#9F2F8B #9F7B2F #2F9F43 #2F539F
split-complementary
#9F2F8B #539F2F #2F9F7B
monochromatic
#411338 #702162 #9F2F8B #C844B0 #D673C4

Accessibility & contrast

On white

6.45
#9F2F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9F2F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2F8B
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2F8B#FFFFFF#000000##FFFFFF
##9F2F8B1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30548E
Deuteranopia (green-blind)
#566488
Tritanopia (blue-blind)
#A73659
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2f8b;
/* rgb */ color: rgb(159, 47, 139);
/* oklch */ color: oklch(50.7% 0.179 335.9);
Tailwind
colors: {
  custom: {
    50: '#bf72ad',
    500: '#9f2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #9f2f8b;
$custom-light: #bf72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2f8b",
  "rgb": {
    "r": 159,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 310.714,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50657,
    "c": 0.17873,
    "h": 335.9
  },
  "luminance": 0.11268
}

Semantic roles & 50–950 ramp

primary
#9F2F8B
secondary
#6DBD7B
accent
#DE644A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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