#9F30B6#9F30B6

#9F30B6 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.2% C 0.212 H 320.1°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9F30B6
RGBrgb(159, 48, 182)
HSLhsl(290, 58%, 45%)
HSVhsv(290, 74%, 71%)
CMYKcmyk(12.6%, 73.6%, 0%, 28.6%)
CIE-LABlab(42.56, 62.74, -48.54)
CIE-LCHlch(42.56, 79.32, 322.27°)
OKLaboklab(53.24% 0.1628 -0.136)
OKLCHoklch(53.24% 0.212 320.1)
XYZxyz(23.7975, 12.8634, 45.4763)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F30B6 #47B630
analogous
#5C30B6 #9F30B6 #B6308A
triadic
#9F30B6 #B69F30 #30B69F
tetradic
#9F30B6 #B65C30 #47B630 #308AB6
square
#9F30B6 #B65C30 #47B630 #308AB6
split-complementary
#9F30B6 #8AB630 #30B65C
monochromatic
#4A1655 #752386 #9F30B6 #BB52D1 #CE82DE

Accessibility & contrast

On white

5.88
#9F30B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9F30B6
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F30B6#FFFFFF#000000##FFFFFF
##9F30B61.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#3D68B3
Tritanopia (blue-blind)
#A04A71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9f30b6;
/* rgb */ color: rgb(159, 48, 182);
/* oklch */ color: oklch(53.2% 0.212 320.1);
Tailwind
colors: {
  custom: {
    50: '#bf74cc',
    500: '#9f30b6',
    950: '#000000',
  },
}
SCSS
$custom: #9f30b6;
$custom-light: #bf74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f30b6",
  "rgb": {
    "r": 159,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 289.701,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53243,
    "c": 0.21213,
    "h": 320.1
  },
  "luminance": 0.12862
}

Semantic roles & 50–950 ramp

primary
#9F30B6
secondary
#88C77B
accent
#E14661
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9F30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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