#9B1FA7#9B1FA7

#9B1FA7 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.4% C 0.215 H 324.0°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9B1FA7
RGBrgb(155, 31, 167)
HSLhsl(295, 69%, 39%)
HSVhsv(295, 81%, 65%)
CMYKcmyk(7.2%, 81.4%, 0%, 34.5%)
CIE-LABlab(39.14, 64.52, -45.15)
CIE-LCHlch(39.14, 78.75, 325.02°)
OKLaboklab(50.39% 0.1737 -0.1261)
OKLCHoklch(50.39% 0.215 324)
XYZxyz(20.9820, 10.7399, 37.5196)
Luminance0.1074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B1FA7 #2BA71F
analogous
#571FA7 #9B1FA7 #A71F6F
triadic
#9B1FA7 #A79B1F #1FA79B
tetradic
#9B1FA7 #A7571F #2BA71F #1F6FA7
square
#9B1FA7 #A7571F #2BA71F #1F6FA7
split-complementary
#9B1FA7 #6FA71F #1FA757
monochromatic
#3B0C40 #6B1573 #9B1FA7 #C92BD8 #D65FE1

Accessibility & contrast

On white

6.67
#9B1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9B1FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B1FA7
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B1FA7#FFFFFF#000000##FFFFFF
##9B1FA71.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#3B61A4
Tritanopia (blue-blind)
#9E3B64
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9b1fa7;
/* rgb */ color: rgb(155, 31, 167);
/* oklch */ color: oklch(50.4% 0.215 324.0);
Tailwind
colors: {
  custom: {
    50: '#bd6cc2',
    500: '#9b1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #9b1fa7;
$custom-light: #bd6cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b1fa7",
  "rgb": {
    "r": 155,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 294.706,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.50391,
    "c": 0.21465,
    "h": 324
  },
  "luminance": 0.10739
}

Semantic roles & 50–950 ramp

primary
#9B1FA7
secondary
#65C65C
accent
#EC3C4C
background
#FCF6FC
surface
#F8ECF8
border
#D1C7D1
text
#130812
muted
#827A81

Preview Lab

Preview with #9B1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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