#9C2FA5#9C2FA5

#9C2FA5 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.7% C 0.198 H 324.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9C2FA5
RGBrgb(156, 47, 165)
HSLhsl(295, 56%, 42%)
HSVhsv(295, 72%, 65%)
CMYKcmyk(5.5%, 71.5%, 0%, 35.3%)
CIE-LABlab(40.93, 59.36, -41.09)
CIE-LCHlch(40.93, 72.19, 325.31°)
OKLaboklab(51.66% 0.1611 -0.1143)
OKLCHoklch(51.66% 0.198 324.6)
XYZxyz(21.5178, 11.8189, 36.7379)
Luminance0.1182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2FA5 #38A52F
analogous
#612FA5 #9C2FA5 #A52F73
triadic
#9C2FA5 #A59C2F #2FA59C
tetradic
#9C2FA5 #A5612F #38A52F #2F73A5
square
#9C2FA5 #A5612F #38A52F #2F73A5
split-complementary
#9C2FA5 #73A52F #2FA561
monochromatic
#421446 #6F2175 #9C2FA5 #C047CB #D176D8

Accessibility & contrast

On white

6.24
#9C2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#9C2FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2FA5
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2FA5#FFFFFF#000000##FFFFFF
##9C2FA51.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B58A8
Deuteranopia (green-blind)
#4665A2
Tritanopia (blue-blind)
#9F4367
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9c2fa5;
/* rgb */ color: rgb(156, 47, 165);
/* oklch */ color: oklch(51.7% 0.198 324.6);
Tailwind
colors: {
  custom: {
    50: '#bd72c0',
    500: '#9c2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #9c2fa5;
$custom-light: #bd72c0;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2fa5",
  "rgb": {
    "r": 156,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 295.424,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51656,
    "c": 0.1976,
    "h": 324.6
  },
  "luminance": 0.11818
}

Semantic roles & 50–950 ramp

primary
#9C2FA5
secondary
#76C070
accent
#DF4954
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9C2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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