#9F34C2#9F34C2

#9F34C2 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.4% C 0.218 H 316.3°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#9F34C2
RGBrgb(159, 52, 194)
HSLhsl(285, 58%, 48%)
HSVhsv(285, 73%, 76%)
CMYKcmyk(18%, 73.2%, 0%, 23.9%)
CIE-LABlab(43.83, 63.57, -53.52)
CIE-LCHlch(43.83, 83.10, 319.91°)
OKLaboklab(54.4% 0.1578 -0.1507)
OKLCHoklch(54.4% 0.218 316.3)
XYZxyz(25.2622, 13.7230, 52.3466)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F34C2 #57C234
analogous
#5834C2 #9F34C2 #C2349E
triadic
#9F34C2 #C29F34 #34C29F
tetradic
#9F34C2 #C25834 #57C234 #349EC2
square
#9F34C2 #C25834 #57C234 #349EC2
split-complementary
#9F34C2 #9EC234 #34C258
monochromatic
#501A61 #772792 #9F34C2 #B75FD4 #CD8FE1

Accessibility & contrast

On white

5.61
#9F34C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#9F34C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F34C2
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F34C2#FFFFFF#000000##FFFFFF
##9F34C21.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#346BBF
Tritanopia (blue-blind)
#9D5278
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9f34c2;
/* rgb */ color: rgb(159, 52, 194);
/* oklch */ color: oklch(54.4% 0.218 316.3);
Tailwind
colors: {
  custom: {
    50: '#c076d5',
    500: '#9f34c2',
    950: '#000000',
  },
}
SCSS
$custom: #9f34c2;
$custom-light: #c076d5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f34c2",
  "rgb": {
    "r": 159,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 285.211,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.54395,
    "c": 0.21816,
    "h": 316.3
  },
  "luminance": 0.13722
}

Semantic roles & 50–950 ramp

primary
#9F34C2
secondary
#97CC86
accent
#E1476D
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9F34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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