#9A1F7E#9A1F7E

#9A1F7E is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.9% C 0.184 H 339.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#9A1F7E
RGBrgb(154, 31, 126)
HSLhsl(314, 66%, 36%)
HSVhsv(314, 80%, 60%)
CMYKcmyk(0%, 79.9%, 18.2%, 39.6%)
CIE-LABlab(36.66, 57.89, -24.04)
CIE-LCHlch(36.66, 62.69, 337.45°)
OKLaboklab(47.85% 0.1725 -0.0651)
OKLCHoklch(47.85% 0.184 339.3)
XYZxyz(17.5828, 9.3581, 20.6149)
Luminance0.0936 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F7E #1F9A3B
analogous
#791F9A #9A1F7E #9A1F41
triadic
#9A1F7E #7E9A1F #1F7E9A
tetradic
#9A1F7E #9A791F #1F9A3B #1F419A
square
#9A1F7E #9A791F #1F9A3B #1F419A
split-complementary
#9A1F7E #419A1F #1F9A79
monochromatic
#340A2B #671554 #9A1F7E #CD29A8 #DD56BE

Accessibility & contrast

On white

7.31
#9A1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#9A1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1F7E
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F7E#FFFFFF#000000##FFFFFF
##9A1F7E1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284A80
Deuteranopia (green-blind)
#515D7B
Tritanopia (blue-blind)
#A3254D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9a1f7e;
/* rgb */ color: rgb(154, 31, 126);
/* oklch */ color: oklch(47.9% 0.184 339.3);
Tailwind
colors: {
  custom: {
    50: '#bc6aa3',
    500: '#9a1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f7e;
$custom-light: #bc6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f7e",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 313.659,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47853,
    "c": 0.18437,
    "h": 339.3
  },
  "luminance": 0.09356
}

Semantic roles & 50–950 ramp

primary
#9A1F7E
secondary
#54C16D
accent
#E9653E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9A1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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