#9F3C97#9F3C97

#9F3C97 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.7% C 0.171 H 331.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9F3C97
RGBrgb(159, 60, 151)
HSLhsl(305, 45%, 43%)
HSVhsv(305, 62%, 62%)
CMYKcmyk(0%, 62.3%, 5%, 37.6%)
CIE-LABlab(42.52, 52.41, -30.13)
CIE-LCHlch(42.52, 60.46, 330.10°)
OKLaboklab(52.66% 0.1491 -0.0827)
OKLCHoklch(52.66% 0.171 331)
XYZxyz(21.4998, 12.8385, 30.6179)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3C97 #3C9F44
analogous
#753C9F #9F3C97 #9F3C66
triadic
#9F3C97 #979F3C #3C979F
tetradic
#9F3C97 #9F753C #3C9F44 #3C669F
square
#9F3C97 #9F753C #3C9F44 #3C669F
split-complementary
#9F3C97 #669F3C #3C9F75
monochromatic
#461A43 #732B6D #9F3C97 #C058B8 #D185CB

Accessibility & contrast

On white

5.89
#9F3C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9F3C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F3C97
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3C97#FFFFFF#000000##FFFFFF
##9F3C971.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365C9A
Deuteranopia (green-blind)
#576994
Tritanopia (blue-blind)
#A54664
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f3c97;
/* rgb */ color: rgb(159, 60, 151);
/* oklch */ color: oklch(52.7% 0.171 331.0);
Tailwind
colors: {
  custom: {
    50: '#be78b6',
    500: '#9f3c97',
    950: '#000000',
  },
}
SCSS
$custom: #9f3c97;
$custom-light: #be78b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3c97",
  "rgb": {
    "r": 159,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 304.848,
    "s": 45.205,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52656,
    "c": 0.1705,
    "h": 331
  },
  "luminance": 0.12837
}

Semantic roles & 50–950 ramp

primary
#9F3C97
secondary
#7CBB81
accent
#D55D53
background
#FCF7FB
surface
#F8EEF6
border
#D1C9D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9F3C97

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

Preview Lab → · Contrast checker → · Palette generator →

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