#9F3CB7#9F3CB7

#9F3CB7 is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.5% C 0.199 H 319.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#9F3CB7
RGBrgb(159, 60, 183)
HSLhsl(288, 51%, 48%)
HSVhsv(288, 67%, 72%)
CMYKcmyk(13.1%, 67.2%, 0%, 28.2%)
CIE-LABlab(44.27, 58.27, -46.39)
CIE-LCHlch(44.27, 74.48, 321.48°)
OKLaboklab(54.48% 0.1504 -0.1298)
OKLCHoklch(54.48% 0.199 319.2)
XYZxyz(24.4601, 14.0227, 46.2088)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3CB7 #54B73C
analogous
#623CB7 #9F3CB7 #B73C91
triadic
#9F3CB7 #B79F3C #3CB79F
tetradic
#9F3CB7 #B7623C #54B73C #3C91B7
square
#9F3CB7 #B7623C #54B73C #3C91B7
split-complementary
#9F3CB7 #91B73C #3CB762
monochromatic
#4F1E5B #772D89 #9F3CB7 #B864CC #CD92DB

Accessibility & contrast

On white

5.52
#9F3CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9F3CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F3CB7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3CB7#FFFFFF#000000##FFFFFF
##9F3CB71.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B62BB
Deuteranopia (green-blind)
#446CB4
Tritanopia (blue-blind)
#9F5275
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9f3cb7;
/* rgb */ color: rgb(159, 60, 183);
/* oklch */ color: oklch(54.5% 0.199 319.2);
Tailwind
colors: {
  custom: {
    50: '#bf79cd',
    500: '#9f3cb7',
    950: '#000000',
  },
}
SCSS
$custom: #9f3cb7;
$custom-light: #bf79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3cb7",
  "rgb": {
    "r": 159,
    "g": 60,
    "b": 183
  },
  "hsl": {
    "h": 288.293,
    "s": 50.617,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54484,
    "c": 0.19867,
    "h": 319.2
  },
  "luminance": 0.14022
}

Semantic roles & 50–950 ramp

primary
#9F3CB7
secondary
#94C688
accent
#DA4E69
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #9F3CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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