#9A1FA6#9A1FA6

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

Color values

HEX#9A1FA6
RGBrgb(154, 31, 166)
HSLhsl(295, 69%, 39%)
HSVhsv(295, 81%, 65%)
CMYKcmyk(7.2%, 81.3%, 0%, 34.9%)
CIE-LABlab(38.91, 64.15, -44.93)
CIE-LCHlch(38.91, 78.32, 324.99°)
OKLaboklab(50.17% 0.1727 -0.1255)
OKLCHoklch(50.17% 0.213 324)
XYZxyz(20.6988, 10.6045, 37.0256)
Luminance0.1060 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1FA6 #2BA61F
analogous
#561FA6 #9A1FA6 #A61F6E
triadic
#9A1FA6 #A69A1F #1FA69A
tetradic
#9A1FA6 #A6561F #2BA61F #1F6EA6
square
#9A1FA6 #A6561F #2BA61F #1F6EA6
split-complementary
#9A1FA6 #6EA61F #1FA656
monochromatic
#3A0C3F #6A1572 #9A1FA6 #C82BD7 #D55EE1

Accessibility & contrast

On white

6.73
#9A1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#9A1FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A1FA6
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1FA6#FFFFFF#000000##FFFFFF
##9A1FA61.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a1fa6;
/* rgb */ color: rgb(154, 31, 166);
/* oklch */ color: oklch(50.2% 0.213 324.0);
Tailwind
colors: {
  custom: {
    50: '#bc6cc1',
    500: '#9a1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #9a1fa6;
$custom-light: #bc6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1fa6",
  "rgb": {
    "r": 154,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 294.667,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50174,
    "c": 0.21346,
    "h": 324
  },
  "luminance": 0.10603
}

Semantic roles & 50–950 ramp

primary
#9A1FA6
secondary
#65C55B
accent
#EB3C4C
background
#FCF6FB
surface
#F8ECF7
border
#D1C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #9A1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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