#9A1F7A#9A1F7A

#9A1F7A is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.7% C 0.182 H 341.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#9A1F7A
RGBrgb(154, 31, 122)
HSLhsl(316, 66%, 36%)
HSVhsv(316, 80%, 60%)
CMYKcmyk(0%, 79.9%, 20.8%, 39.6%)
CIE-LABlab(36.47, 57.34, -21.84)
CIE-LCHlch(36.47, 61.36, 339.15°)
OKLaboklab(47.65% 0.172 -0.0589)
OKLCHoklch(47.65% 0.182 341.1)
XYZxyz(17.3298, 9.2569, 19.2827)
Luminance0.0925 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F7A #1F9A3F
analogous
#7D1F9A #9A1F7A #9A1F3D
triadic
#9A1F7A #7A9A1F #1F7A9A
tetradic
#9A1F7A #9A7D1F #1F9A3F #1F3D9A
square
#9A1F7A #9A7D1F #1F9A3F #1F3D9A
split-complementary
#9A1F7A #3D9A1F #1F9A7D
monochromatic
#340A29 #671552 #9A1F7A #CD29A2 #DD56BA

Accessibility & contrast

On white

7.37
#9A1F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9A1F7A
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F7A#FFFFFF#000000##FFFFFF
##9A1F7A1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B497C
Deuteranopia (green-blind)
#535D77
Tritanopia (blue-blind)
#A4224B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9a1f7a;
/* rgb */ color: rgb(154, 31, 122);
/* oklch */ color: oklch(47.7% 0.182 341.1);
Tailwind
colors: {
  custom: {
    50: '#bc6aa0',
    500: '#9a1f7a',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f7a;
$custom-light: #bc6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f7a",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 315.61,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47654,
    "c": 0.18177,
    "h": 341.1
  },
  "luminance": 0.09255
}

Semantic roles & 50–950 ramp

primary
#9A1F7A
secondary
#54C170
accent
#E96B3E
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #9A1F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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