#9F30C2#9F30C2

#9F30C2 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.0% C 0.222 H 316.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9F30C2
RGBrgb(159, 48, 194)
HSLhsl(286, 60%, 47%)
HSVhsv(286, 75%, 76%)
CMYKcmyk(18%, 75.3%, 0%, 23.9%)
CIE-LABlab(43.33, 65.01, -54.32)
CIE-LCHlch(43.33, 84.72, 320.12°)
OKLaboklab(54.04% 0.1614 -0.153)
OKLCHoklch(54.04% 0.222 316.5)
XYZxyz(25.0911, 13.3809, 52.2896)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F30C2 #53C230
analogous
#5630C2 #9F30C2 #C2309C
triadic
#9F30C2 #C29F30 #30C29F
tetradic
#9F30C2 #C25630 #53C230 #309CC2
square
#9F30C2 #C25630 #53C230 #309CC2
split-complementary
#9F30C2 #9CC230 #30C256
monochromatic
#4F1860 #772491 #9F30C2 #B859D6 #CD8AE2

Accessibility & contrast

On white

5.71
#9F30C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9F30C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F30C2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F30C2#FFFFFF#000000##FFFFFF
##9F30C21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#3069BF
Tritanopia (blue-blind)
#9D5077
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9f30c2;
/* rgb */ color: rgb(159, 48, 194);
/* oklch */ color: oklch(54.0% 0.222 316.5);
Tailwind
colors: {
  custom: {
    50: '#c074d5',
    500: '#9f30c2',
    950: '#000000',
  },
}
SCSS
$custom: #9f30c2;
$custom-light: #c074d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f30c2",
  "rgb": {
    "r": 159,
    "g": 48,
    "b": 194
  },
  "hsl": {
    "h": 285.616,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5404,
    "c": 0.22242,
    "h": 316.5
  },
  "luminance": 0.1338
}

Semantic roles & 50–950 ramp

primary
#9F30C2
secondary
#94CC82
accent
#E3446A
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9F30C2

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

Preview Lab → · Contrast checker → · Palette generator →

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