#9A1B7D#9A1B7D

#9A1B7D is a mid, vivid pink. Relative luminance 0.091; OKLCH L 47.5% C 0.187 H 339.6°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#9A1B7D
RGBrgb(154, 27, 125)
HSLhsl(314, 70%, 35%)
HSVhsv(314, 82%, 60%)
CMYKcmyk(0%, 82.5%, 18.8%, 39.6%)
CIE-LABlab(36.25, 58.82, -24.07)
CIE-LCHlch(36.25, 63.56, 337.74°)
OKLaboklab(47.54% 0.1756 -0.0652)
OKLCHoklch(47.54% 0.187 339.6)
XYZxyz(17.4205, 9.1363, 20.2441)
Luminance0.0914 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1B7D #1B9A38
analogous
#771B9A #9A1B7D #9A1B3D
triadic
#9A1B7D #7D9A1B #1B7D9A
tetradic
#9A1B7D #9A771B #1B9A38 #1B3D9A
square
#9A1B7D #9A771B #1B9A38 #1B3D9A
split-complementary
#9A1B7D #3D9A1B #1B9A77
monochromatic
#320928 #661253 #9A1B7D #CE24A7 #E04FBF

Accessibility & contrast

On white

7.43
#9A1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#9A1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1B7D
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1B7D#FFFFFF#000000##FFFFFF
##9A1B7D1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25497F
Deuteranopia (green-blind)
#515C7A
Tritanopia (blue-blind)
#A3214C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #9a1b7d;
/* rgb */ color: rgb(154, 27, 125);
/* oklch */ color: oklch(47.5% 0.187 339.6);
Tailwind
colors: {
  custom: {
    50: '#bc68a3',
    500: '#9a1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #9a1b7d;
$custom-light: #bc68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1b7d",
  "rgb": {
    "r": 154,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 313.701,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47536,
    "c": 0.18732,
    "h": 339.6
  },
  "luminance": 0.09135
}

Semantic roles & 50–950 ramp

primary
#9A1B7D
secondary
#4EC369
accent
#ED643B
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9A1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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