#9C2FA1#9C2FA1

#9C2FA1 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.4% C 0.194 H 326.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9C2FA1
RGBrgb(156, 47, 161)
HSLhsl(297, 55%, 41%)
HSVhsv(297, 71%, 63%)
CMYKcmyk(3.1%, 70.8%, 0%, 36.9%)
CIE-LABlab(40.70, 58.66, -39.06)
CIE-LCHlch(40.70, 70.47, 326.34°)
OKLaboklab(51.42% 0.1612 -0.1084)
OKLCHoklch(51.42% 0.194 326.1)
XYZxyz(21.1594, 11.6756, 34.8504)
Luminance0.1167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2FA1 #34A12F
analogous
#632FA1 #9C2FA1 #A12F6D
triadic
#9C2FA1 #A19C2F #2FA19C
tetradic
#9C2FA1 #A1632F #34A12F #2F6DA1
square
#9C2FA1 #A1632F #34A12F #2F6DA1
split-complementary
#9C2FA1 #6DA12F #2FA163
monochromatic
#401342 #6E2172 #9C2FA1 #C345C9 #D274D6

Accessibility & contrast

On white

6.30
#9C2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9C2FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2FA1
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2FA1#FFFFFF#000000##FFFFFF
##9C2FA11.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1557A4
Deuteranopia (green-blind)
#48659E
Tritanopia (blue-blind)
#A04165
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9c2fa1;
/* rgb */ color: rgb(156, 47, 161);
/* oklch */ color: oklch(51.4% 0.194 326.1);
Tailwind
colors: {
  custom: {
    50: '#bd72bd',
    500: '#9c2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #9c2fa1;
$custom-light: #bd72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2fa1",
  "rgb": {
    "r": 156,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 297.368,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51416,
    "c": 0.19429,
    "h": 326.1
  },
  "luminance": 0.11674
}

Semantic roles & 50–950 ramp

primary
#9C2FA1
secondary
#71BE6E
accent
#DE4A50
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9C2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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