#9A1B7E#9A1B7E

#9A1B7E is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.6% C 0.188 H 339.2°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#9A1B7E
RGBrgb(154, 27, 126)
HSLhsl(313, 70%, 35%)
HSVhsv(313, 82%, 60%)
CMYKcmyk(0%, 82.5%, 18.2%, 39.6%)
CIE-LABlab(36.29, 58.96, -24.62)
CIE-LCHlch(36.29, 63.89, 337.34°)
OKLaboklab(47.59% 0.1757 -0.0667)
OKLCHoklch(47.59% 0.188 339.2)
XYZxyz(17.4847, 9.1620, 20.5822)
Luminance0.0916 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1B7E #1B9A37
analogous
#761B9A #9A1B7E #9A1B3F
triadic
#9A1B7E #7E9A1B #1B7E9A
tetradic
#9A1B7E #9A761B #1B9A37 #1B3F9A
square
#9A1B7E #9A761B #1B9A37 #1B3F9A
split-complementary
#9A1B7E #3F9A1B #1B9A76
monochromatic
#320929 #661253 #9A1B7E #CE24A9 #E04FC0

Accessibility & contrast

On white

7.42
#9A1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9A1B7E
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1B7E#FFFFFF#000000##FFFFFF
##9A1B7E1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244981
Deuteranopia (green-blind)
#505C7B
Tritanopia (blue-blind)
#A3224C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #9a1b7e;
/* rgb */ color: rgb(154, 27, 126);
/* oklch */ color: oklch(47.6% 0.188 339.2);
Tailwind
colors: {
  custom: {
    50: '#bc68a3',
    500: '#9a1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #9a1b7e;
$custom-light: #bc68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1b7e",
  "rgb": {
    "r": 154,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 313.228,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47587,
    "c": 0.18796,
    "h": 339.2
  },
  "luminance": 0.0916
}

Semantic roles & 50–950 ramp

primary
#9A1B7E
secondary
#4EC368
accent
#ED623B
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9A1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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