#9A1F87#9A1F87

#9A1F87 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.190 H 335.5°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#9A1F87
RGBrgb(154, 31, 135)
HSLhsl(309, 66%, 36%)
HSVhsv(309, 80%, 60%)
CMYKcmyk(0%, 79.9%, 12.3%, 39.6%)
CIE-LABlab(37.12, 59.19, -28.92)
CIE-LCHlch(37.12, 65.87, 333.96°)
OKLaboklab(48.33% 0.1733 -0.079)
OKLCHoklch(48.33% 0.19 335.5)
XYZxyz(18.1899, 9.6010, 23.8122)
Luminance0.0960 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F87 #1F9A32
analogous
#701F9A #9A1F87 #9A1F4A
triadic
#9A1F87 #879A1F #1F879A
tetradic
#9A1F87 #9A701F #1F9A32 #1F4A9A
square
#9A1F87 #9A701F #1F9A32 #1F4A9A
split-complementary
#9A1F87 #4A9A1F #1F9A70
monochromatic
#340A2E #67155A #9A1F87 #CD29B4 #DD56C8

Accessibility & contrast

On white

7.19
#9A1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#9A1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1F87
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F87#FFFFFF#000000##FFFFFF
##9A1F871.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4C8A
Deuteranopia (green-blind)
#4E5E84
Tritanopia (blue-blind)
#A22A52
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9a1f87;
/* rgb */ color: rgb(154, 31, 135);
/* oklch */ color: oklch(48.3% 0.190 335.5);
Tailwind
colors: {
  custom: {
    50: '#bc6aaa',
    500: '#9a1f87',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f87;
$custom-light: #bc6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f87",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 309.268,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48325,
    "c": 0.19048,
    "h": 335.5
  },
  "luminance": 0.09599
}

Semantic roles & 50–950 ramp

primary
#9A1F87
secondary
#54C165
accent
#E9593E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9A1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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