#9A1F97#9A1F97

#9A1F97 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.202 H 329.2°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#9A1F97
RGBrgb(154, 31, 151)
HSLhsl(301, 66%, 36%)
HSVhsv(301, 80%, 60%)
CMYKcmyk(0%, 79.9%, 1.9%, 39.6%)
CIE-LABlab(38.00, 61.66, -37.33)
CIE-LCHlch(38.00, 72.08, 328.81°)
OKLaboklab(49.24% 0.1736 -0.1034)
OKLCHoklch(49.24% 0.202 329.2)
XYZxyz(19.4022, 10.0859, 30.1970)
Luminance0.1008 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1F97 #1F9A22
analogous
#601F9A #9A1F97 #9A1F5A
triadic
#9A1F97 #979A1F #1F979A
tetradic
#9A1F97 #9A601F #1F9A22 #1F5A9A
square
#9A1F97 #9A601F #1F9A22 #1F5A9A
split-complementary
#9A1F97 #5A9A1F #1F9A60
monochromatic
#340A33 #671565 #9A1F97 #CD29C9 #DD56DA

Accessibility & contrast

On white

6.96
#9A1F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#9A1F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A1F97
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1F97#FFFFFF#000000##FFFFFF
##9A1F971.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014F9A
Deuteranopia (green-blind)
#455F94
Tritanopia (blue-blind)
#A0335B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9a1f97;
/* rgb */ color: rgb(154, 31, 151);
/* oklch */ color: oklch(49.2% 0.202 329.2);
Tailwind
colors: {
  custom: {
    50: '#bc6bb6',
    500: '#9a1f97',
    950: '#000000',
  },
}
SCSS
$custom: #9a1f97;
$custom-light: #bc6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1f97",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 301.463,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49237,
    "c": 0.20205,
    "h": 329.2
  },
  "luminance": 0.10084
}

Semantic roles & 50–950 ramp

primary
#9A1F97
secondary
#54C157
accent
#E9433E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#120811
muted
#817A80

Preview Lab

Preview with #9A1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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