#9A1F8A#9A1F8A

#9A1F8A is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.193 H 334.3°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#9A1F8A
RGBrgb(154, 31, 138)
HSLhsl(308, 66%, 36%)
HSVhsv(308, 80%, 60%)
CMYKcmyk(0%, 79.9%, 10.4%, 39.6%)
CIE-LABlab(37.27, 59.64, -30.52)
CIE-LCHlch(37.27, 66.99, 332.90°)
OKLaboklab(48.49% 0.1735 -0.0837)
OKLCHoklch(48.49% 0.193 334.3)
XYZxyz(18.4041, 9.6866, 24.9403)
Luminance0.0969 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F8A #1F9A2F
analogous
#6D1F9A #9A1F8A #9A1F4D
triadic
#9A1F8A #8A9A1F #1F8A9A
tetradic
#9A1F8A #9A6D1F #1F9A2F #1F4D9A
square
#9A1F8A #9A6D1F #1F9A2F #1F4D9A
split-complementary
#9A1F8A #4D9A1F #1F9A6D
monochromatic
#340A2F #67155C #9A1F8A #CD29B8 #DD56CC

Accessibility & contrast

On white

7.15
#9A1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9A1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1F8A
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F8A#FFFFFF#000000##FFFFFF
##9A1F8A1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4C8D
Deuteranopia (green-blind)
#4C5E87
Tritanopia (blue-blind)
#A22C54
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9a1f8a;
/* rgb */ color: rgb(154, 31, 138);
/* oklch */ color: oklch(48.5% 0.193 334.3);
Tailwind
colors: {
  custom: {
    50: '#bc6aac',
    500: '#9a1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f8a;
$custom-light: #bc6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f8a",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 307.805,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48488,
    "c": 0.19259,
    "h": 334.3
  },
  "luminance": 0.09685
}

Semantic roles & 50–950 ramp

primary
#9A1F8A
secondary
#54C162
accent
#E9553E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9A1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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