#9F30B1#9F30B1

#9F30B1 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 52.9% C 0.208 H 321.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#9F30B1
RGBrgb(159, 48, 177)
HSLhsl(292, 57%, 44%)
HSVhsv(292, 73%, 69%)
CMYKcmyk(10.2%, 72.9%, 0%, 30.6%)
CIE-LABlab(42.25, 61.82, -46.08)
CIE-LCHlch(42.25, 77.10, 323.30°)
OKLaboklab(52.92% 0.1631 -0.1289)
OKLCHoklch(52.92% 0.208 321.7)
XYZxyz(23.2900, 12.6604, 42.8034)
Luminance0.1266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F30B1 #42B130
analogous
#5F30B1 #9F30B1 #B13083
triadic
#9F30B1 #B19F30 #30B19F
tetradic
#9F30B1 #B15F30 #42B130 #3083B1
square
#9F30B1 #B15F30 #42B130 #3083B1
split-complementary
#9F30B1 #83B130 #30B15F
monochromatic
#491651 #742381 #9F30B1 #BD4FCF #CF7FDC

Accessibility & contrast

On white

5.95
#9F30B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#9F30B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F30B1
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F30B1#FFFFFF#000000##FFFFFF
##9F30B11.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#4168AE
Tritanopia (blue-blind)
#A1486E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f30b1;
/* rgb */ color: rgb(159, 48, 177);
/* oklch */ color: oklch(52.9% 0.208 321.7);
Tailwind
colors: {
  custom: {
    50: '#bf73c9',
    500: '#9f30b1',
    950: '#000000',
  },
}
SCSS
$custom: #9f30b1;
$custom-light: #bf73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f30b1",
  "rgb": {
    "r": 159,
    "g": 48,
    "b": 177
  },
  "hsl": {
    "h": 291.628,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52923,
    "c": 0.20788,
    "h": 321.7
  },
  "luminance": 0.12659
}

Semantic roles & 50–950 ramp

primary
#9F30B1
secondary
#82C578
accent
#E1475D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9F30B1

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

Preview Lab → · Contrast checker → · Palette generator →

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