#9A1F79#9A1F79

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

Color values

HEX#9A1F79
RGBrgb(154, 31, 121)
HSLhsl(316, 66%, 36%)
HSVhsv(316, 80%, 60%)
CMYKcmyk(0%, 79.9%, 21.4%, 39.6%)
CIE-LABlab(36.43, 57.20, -21.29)
CIE-LCHlch(36.43, 61.04, 339.59°)
OKLaboklab(47.61% 0.1718 -0.0573)
OKLCHoklch(47.61% 0.181 341.6)
XYZxyz(17.2682, 9.2323, 18.9581)
Luminance0.0923 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F79 #1F9A40
analogous
#7E1F9A #9A1F79 #9A1F3C
triadic
#9A1F79 #799A1F #1F799A
tetradic
#9A1F79 #9A7E1F #1F9A40 #1F3C9A
square
#9A1F79 #9A7E1F #1F9A40 #1F3C9A
split-complementary
#9A1F79 #3C9A1F #1F9A7E
monochromatic
#340A29 #671551 #9A1F79 #CD29A1 #DD56B9

Accessibility & contrast

On white

7.38
#9A1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#9A1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1F79
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F79#FFFFFF#000000##FFFFFF
##9A1F791.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B497B
Deuteranopia (green-blind)
#535D76
Tritanopia (blue-blind)
#A4224A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9a1f79;
/* rgb */ color: rgb(154, 31, 121);
/* oklch */ color: oklch(47.6% 0.181 341.6);
Tailwind
colors: {
  custom: {
    50: '#bc6aa0',
    500: '#9a1f79',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f79;
$custom-light: #bc6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f79",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 316.098,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47605,
    "c": 0.18113,
    "h": 341.6
  },
  "luminance": 0.0923
}

Semantic roles & 50–950 ramp

primary
#9A1F79
secondary
#54C171
accent
#E96C3E
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12070E
muted
#817A7E

Preview Lab

Preview with #9A1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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