#9A1F8D#9A1F8D

#9A1F8D is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.195 H 333.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#9A1F8D
RGBrgb(154, 31, 141)
HSLhsl(306, 66%, 36%)
HSVhsv(306, 80%, 60%)
CMYKcmyk(0%, 79.9%, 8.4%, 39.6%)
CIE-LABlab(37.44, 60.09, -32.11)
CIE-LCHlch(37.44, 68.13, 331.88°)
OKLaboklab(48.66% 0.1736 -0.0882)
OKLCHoklch(48.66% 0.195 333.1)
XYZxyz(18.6243, 9.7747, 26.1000)
Luminance0.0977 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F8D #1F9A2C
analogous
#6A1F9A #9A1F8D #9A1F50
triadic
#9A1F8D #8D9A1F #1F8D9A
tetradic
#9A1F8D #9A6A1F #1F9A2C #1F509A
square
#9A1F8D #9A6A1F #1F9A2C #1F509A
split-complementary
#9A1F8D #509A1F #1F9A6A
monochromatic
#340A30 #67155E #9A1F8D #CD29BC #DD56CF

Accessibility & contrast

On white

7.11
#9A1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#9A1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1F8D
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F8D#FFFFFF#000000##FFFFFF
##9A1F8D1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D90
Deuteranopia (green-blind)
#4B5E8A
Tritanopia (blue-blind)
#A12D56
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9a1f8d;
/* rgb */ color: rgb(154, 31, 141);
/* oklch */ color: oklch(48.7% 0.195 333.1);
Tailwind
colors: {
  custom: {
    50: '#bc6aaf',
    500: '#9a1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f8d;
$custom-light: #bc6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f8d",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 306.341,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48656,
    "c": 0.19472,
    "h": 333.1
  },
  "luminance": 0.09773
}

Semantic roles & 50–950 ramp

primary
#9A1F8D
secondary
#54C160
accent
#E9503E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9A1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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