#9A1FA7#9A1FA7

#9A1FA7 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.2% C 0.214 H 323.6°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#9A1FA7
RGBrgb(154, 31, 167)
HSLhsl(294, 69%, 39%)
HSVhsv(294, 81%, 65%)
CMYKcmyk(7.8%, 81.4%, 0%, 34.5%)
CIE-LABlab(38.97, 64.33, -45.43)
CIE-LCHlch(38.97, 78.75, 324.77°)
OKLaboklab(50.24% 0.1726 -0.127)
OKLCHoklch(50.24% 0.214 323.6)
XYZxyz(20.7908, 10.6413, 37.5106)
Luminance0.1064 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1FA7 #2CA71F
analogous
#561FA7 #9A1FA7 #A71F70
triadic
#9A1FA7 #A79A1F #1FA79A
tetradic
#9A1FA7 #A7561F #2CA71F #1F70A7
square
#9A1FA7 #A7561F #2CA71F #1F70A7
split-complementary
#9A1FA7 #70A71F #1FA756
monochromatic
#3B0C40 #6A1573 #9A1FA7 #C72BD8 #D55FE1

Accessibility & contrast

On white

6.71
#9A1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9A1FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A1FA7
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1FA7#FFFFFF#000000##FFFFFF
##9A1FA71.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#3A60A4
Tritanopia (blue-blind)
#9D3B64
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9a1fa7;
/* rgb */ color: rgb(154, 31, 167);
/* oklch */ color: oklch(50.2% 0.214 323.6);
Tailwind
colors: {
  custom: {
    50: '#bc6cc2',
    500: '#9a1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #9a1fa7;
$custom-light: #bc6cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1fa7",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 294.265,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.50239,
    "c": 0.21424,
    "h": 323.6
  },
  "luminance": 0.1064
}

Semantic roles & 50–950 ramp

primary
#9A1FA7
secondary
#66C65C
accent
#EC3C4D
background
#FCF6FC
surface
#F8ECF8
border
#D1C7D1
text
#120812
muted
#817A81

Preview Lab

Preview with #9A1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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