#9A2F87#9A2F87

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

Color values

HEX#9A2F87
RGBrgb(154, 47, 135)
HSLhsl(311, 53%, 39%)
HSVhsv(311, 69%, 60%)
CMYKcmyk(0%, 69.5%, 12.3%, 39.6%)
CIE-LABlab(38.99, 53.86, -25.98)
CIE-LCHlch(38.99, 59.80, 334.25°)
OKLaboklab(49.68% 0.1575 -0.0708)
OKLCHoklch(49.68% 0.173 335.8)
XYZxyz(18.7164, 10.6539, 23.9877)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2F87 #2F9A42
analogous
#782F9A #9A2F87 #9A2F52
triadic
#9A2F87 #879A2F #2F879A
tetradic
#9A2F87 #9A782F #2F9A42 #2F529A
square
#9A2F87 #9A782F #2F9A42 #2F529A
split-complementary
#9A2F87 #529A2F #2F9A78
monochromatic
#3C1235 #6B215E #9A2F87 #C541AE #D370C2

Accessibility & contrast

On white

6.71
#9A2F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9A2F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2F87
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2F87#FFFFFF#000000##FFFFFF
##9A2F871.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30528A
Deuteranopia (green-blind)
#546284
Tritanopia (blue-blind)
#A23657
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9a2f87;
/* rgb */ color: rgb(154, 47, 135);
/* oklch */ color: oklch(49.7% 0.173 335.8);
Tailwind
colors: {
  custom: {
    50: '#bb71aa',
    500: '#9a2f87',
    950: '#000000',
  },
}
SCSS
$custom: #9a2f87;
$custom-light: #bb71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2f87",
  "rgb": {
    "r": 154,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 310.654,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49677,
    "c": 0.17266,
    "h": 335.8
  },
  "luminance": 0.10652
}

Semantic roles & 50–950 ramp

primary
#9A2F87
secondary
#6ABB78
accent
#DD654B
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9A2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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