#9B1F82#9B1F82

#9B1F82 is a mid, vivid pink. Relative luminance 0.096; OKLCH L 48.2% C 0.188 H 337.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#9B1F82
RGBrgb(155, 31, 130)
HSLhsl(312, 67%, 36%)
HSVhsv(312, 80%, 61%)
CMYKcmyk(0%, 80%, 16.1%, 39.2%)
CIE-LABlab(37.04, 58.69, -25.92)
CIE-LCHlch(37.04, 64.16, 336.17°)
OKLaboklab(48.22% 0.1739 -0.0704)
OKLCHoklch(48.22% 0.188 337.9)
XYZxyz(18.0372, 9.5620, 22.0105)
Luminance0.0956 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B1F82 #1F9B38
analogous
#761F9B #9B1F82 #9B1F44
triadic
#9B1F82 #829B1F #1F829B
tetradic
#9B1F82 #9B761F #1F9B38 #1F449B
square
#9B1F82 #9B761F #1F9B38 #1F449B
split-complementary
#9B1F82 #449B1F #1F9B76
monochromatic
#350B2C #681557 #9B1F82 #CE29AD #DD57C2

Accessibility & contrast

On white

7.21
#9B1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#9B1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B1F82
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B1F82#FFFFFF#000000##FFFFFF
##9B1F821.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254B85
Deuteranopia (green-blind)
#515E7F
Tritanopia (blue-blind)
#A4274F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9b1f82;
/* rgb */ color: rgb(155, 31, 130);
/* oklch */ color: oklch(48.2% 0.188 337.9);
Tailwind
colors: {
  custom: {
    50: '#bc6aa6',
    500: '#9b1f82',
    950: '#000000',
  },
}
SCSS
$custom: #9b1f82;
$custom-light: #bc6aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b1f82",
  "rgb": {
    "r": 155,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 312.097,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48224,
    "c": 0.1876,
    "h": 337.9
  },
  "luminance": 0.0956
}

Semantic roles & 50–950 ramp

primary
#9B1F82
secondary
#55C16B
accent
#EA613E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9B1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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