#9F3CA8#9F3CA8

#9F3CA8 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.6% C 0.185 H 324.3°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#9F3CA8
RGBrgb(159, 60, 168)
HSLhsl(295, 47%, 45%)
HSVhsv(295, 64%, 66%)
CMYKcmyk(5.4%, 64.3%, 0%, 34.1%)
CIE-LABlab(43.41, 55.43, -38.90)
CIE-LCHlch(43.41, 67.72, 324.94°)
OKLaboklab(53.59% 0.1504 -0.108)
OKLCHoklch(53.59% 0.185 324.3)
XYZxyz(22.9812, 13.4311, 38.4202)
Luminance0.1343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3CA8 #45A83C
analogous
#693CA8 #9F3CA8 #A83C7B
triadic
#9F3CA8 #A89F3C #3CA89F
tetradic
#9F3CA8 #A8693C #45A83C #3C7BA8
square
#9F3CA8 #A8693C #45A83C #3C7BA8
split-complementary
#9F3CA8 #7BA83C #3CA869
monochromatic
#4A1C4E #742C7B #9F3CA8 #BC5CC5 #CF89D5

Accessibility & contrast

On white

5.70
#9F3CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#9F3CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F3CA8
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3CA8#FFFFFF#000000##FFFFFF
##9F3CA81.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275FAB
Deuteranopia (green-blind)
#4E6BA5
Tritanopia (blue-blind)
#A24C6D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9f3ca8;
/* rgb */ color: rgb(159, 60, 168);
/* oklch */ color: oklch(53.6% 0.185 324.3);
Tailwind
colors: {
  custom: {
    50: '#be79c2',
    500: '#9f3ca8',
    950: '#000000',
  },
}
SCSS
$custom: #9f3ca8;
$custom-light: #be79c2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3ca8",
  "rgb": {
    "r": 159,
    "g": 60,
    "b": 168
  },
  "hsl": {
    "h": 295,
    "s": 47.368,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53587,
    "c": 0.18513,
    "h": 324.3
  },
  "luminance": 0.1343
}

Semantic roles & 50–950 ramp

primary
#9F3CA8
secondary
#86BF80
accent
#D7515C
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120A12
muted
#817C81

Preview Lab

Preview with #9F3CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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