#9A1F76#9A1F76

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

Color values

HEX#9A1F76
RGBrgb(154, 31, 118)
HSLhsl(318, 66%, 36%)
HSVhsv(318, 80%, 60%)
CMYKcmyk(0%, 79.9%, 23.4%, 39.6%)
CIE-LABlab(36.29, 56.80, -19.62)
CIE-LCHlch(36.29, 60.10, 340.95°)
OKLaboklab(47.46% 0.1714 -0.0526)
OKLCHoklch(47.46% 0.179 342.9)
XYZxyz(17.0871, 9.1598, 18.0042)
Luminance0.0916 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F76 #1F9A43
analogous
#811F9A #9A1F76 #9A1F39
triadic
#9A1F76 #769A1F #1F769A
tetradic
#9A1F76 #9A811F #1F9A43 #1F399A
square
#9A1F76 #9A811F #1F9A43 #1F399A
split-complementary
#9A1F76 #399A1F #1F9A81
monochromatic
#340A28 #67154F #9A1F76 #CD299D #DD56B6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9A1F76#FFFFFF#000000##FFFFFF
##9A1F761.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)
#2D4978
Deuteranopia (green-blind)
#545D73
Tritanopia (blue-blind)
#A42049
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #9a1f76;
/* rgb */ color: rgb(154, 31, 118);
/* oklch */ color: oklch(47.5% 0.179 342.9);
Tailwind
colors: {
  custom: {
    50: '#bc699d',
    500: '#9a1f76',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f76;
$custom-light: #bc699d;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f76",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 317.561,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47461,
    "c": 0.17926,
    "h": 342.9
  },
  "luminance": 0.09158
}

Semantic roles & 50–950 ramp

primary
#9A1F76
secondary
#54C174
accent
#E9703E
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #9A1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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