#9F2BA7#9F2BA7

#9F2BA7 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 51.9% C 0.205 H 325.2°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9F2BA7
RGBrgb(159, 43, 167)
HSLhsl(296, 59%, 41%)
HSVhsv(296, 74%, 65%)
CMYKcmyk(4.8%, 74.3%, 0%, 34.5%)
CIE-LABlab(41.04, 61.76, -42.07)
CIE-LCHlch(41.04, 74.73, 325.74°)
OKLaboklab(51.87% 0.1683 -0.1171)
OKLCHoklch(51.87% 0.205 325.2)
XYZxyz(22.1365, 11.8901, 37.6808)
Luminance0.1189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2BA7 #33A72B
analogous
#612BA7 #9F2BA7 #A72B71
triadic
#9F2BA7 #A79F2B #2BA79F
tetradic
#9F2BA7 #A7612B #33A72B #2B71A7
square
#9F2BA7 #A7612B #33A72B #2B71A7
split-complementary
#9F2BA7 #71A72B #2BA761
monochromatic
#421246 #711E76 #9F2BA7 #C541CE #D472DB

Accessibility & contrast

On white

6.22
#9F2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9F2BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2BA7
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2BA7#FFFFFF#000000##FFFFFF
##9F2BA71.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#4566A4
Tritanopia (blue-blind)
#A34167
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9f2ba7;
/* rgb */ color: rgb(159, 43, 167);
/* oklch */ color: oklch(51.9% 0.205 325.2);
Tailwind
colors: {
  custom: {
    50: '#bf71c2',
    500: '#9f2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #9f2ba7;
$custom-light: #bf71c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2ba7",
  "rgb": {
    "r": 159,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 296.129,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.5187,
    "c": 0.20507,
    "h": 325.2
  },
  "luminance": 0.11889
}

Semantic roles & 50–950 ramp

primary
#9F2BA7
secondary
#71C26C
accent
#E24650
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9F2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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