#9F2FA6#9F2FA6

#9F2FA6 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 52.2% C 0.200 H 325.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9F2FA6
RGBrgb(159, 47, 166)
HSLhsl(296, 56%, 42%)
HSVhsv(296, 72%, 65%)
CMYKcmyk(4.2%, 71.7%, 0%, 34.9%)
CIE-LABlab(41.47, 60.21, -40.79)
CIE-LCHlch(41.47, 72.72, 325.88°)
OKLaboklab(52.16% 0.1645 -0.1134)
OKLCHoklch(52.16% 0.2 325.4)
XYZxyz(22.1970, 12.1586, 37.2467)
Luminance0.1216 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2FA6 #36A62F
analogous
#642FA6 #9F2FA6 #A62F72
triadic
#9F2FA6 #A69F2F #2FA69F
tetradic
#9F2FA6 #A6642F #36A62F #2F72A6
square
#9F2FA6 #A6642F #36A62F #2F72A6
split-complementary
#9F2FA6 #72A62F #2FA664
monochromatic
#441447 #712176 #9F2FA6 #C347CB #D377D8

Accessibility & contrast

On white

6.12
#9F2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9F2FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2FA6
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2FA6#FFFFFF#000000##FFFFFF
##9F2FA61.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F59A9
Deuteranopia (green-blind)
#4867A3
Tritanopia (blue-blind)
#A34368
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9f2fa6;
/* rgb */ color: rgb(159, 47, 166);
/* oklch */ color: oklch(52.2% 0.200 325.4);
Tailwind
colors: {
  custom: {
    50: '#bf73c1',
    500: '#9f2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #9f2fa6;
$custom-light: #bf73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2fa6",
  "rgb": {
    "r": 159,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 296.471,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52156,
    "c": 0.19984,
    "h": 325.4
  },
  "luminance": 0.12157
}

Semantic roles & 50–950 ramp

primary
#9F2FA6
secondary
#75C170
accent
#DF4951
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9F2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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