#9F2FA7#9F2FA7

#9F2FA7 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.2% C 0.201 H 325.1°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9F2FA7
RGBrgb(159, 47, 167)
HSLhsl(296, 56%, 42%)
HSVhsv(296, 72%, 65%)
CMYKcmyk(4.8%, 71.9%, 0%, 34.5%)
CIE-LABlab(41.52, 60.38, -41.30)
CIE-LCHlch(41.52, 73.15, 325.63°)
OKLaboklab(52.22% 0.1645 -0.1149)
OKLCHoklch(52.22% 0.201 325.1)
XYZxyz(22.2891, 12.1954, 37.7317)
Luminance0.1219 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2FA7 #37A72F
analogous
#632FA7 #9F2FA7 #A72F73
triadic
#9F2FA7 #A79F2F #2FA79F
tetradic
#9F2FA7 #A7632F #37A72F #2F73A7
square
#9F2FA7 #A7632F #37A72F #2F73A7
split-complementary
#9F2FA7 #73A72F #2FA763
monochromatic
#441447 #722277 #9F2FA7 #C348CB #D278D9

Accessibility & contrast

On white

6.11
#9F2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#9F2FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2FA7
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2FA7#FFFFFF#000000##FFFFFF
##9F2FA71.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C59AA
Deuteranopia (green-blind)
#4767A4
Tritanopia (blue-blind)
#A34368
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9f2fa7;
/* rgb */ color: rgb(159, 47, 167);
/* oklch */ color: oklch(52.2% 0.201 325.1);
Tailwind
colors: {
  custom: {
    50: '#bf73c2',
    500: '#9f2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #9f2fa7;
$custom-light: #bf73c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2fa7",
  "rgb": {
    "r": 159,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 296,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52216,
    "c": 0.20067,
    "h": 325.1
  },
  "luminance": 0.12194
}

Semantic roles & 50–950 ramp

primary
#9F2FA7
secondary
#76C171
accent
#DF4852
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #9F2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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