#9F34D6#9F34D6

#9F34D6 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.8% C 0.236 H 311.0°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9F34D6
RGBrgb(159, 52, 214)
HSLhsl(280, 66%, 52%)
HSVhsv(280, 76%, 84%)
CMYKcmyk(25.7%, 75.7%, 0%, 16.1%)
CIE-LABlab(45.20, 67.57, -62.88)
CIE-LCHlch(45.20, 92.30, 317.06°)
OKLaboklab(55.79% 0.1548 -0.1781)
OKLCHoklch(55.79% 0.236 311)
XYZxyz(27.6613, 14.6826, 64.9822)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F34D6 #6BD634
analogous
#4E34D6 #9F34D6 #D634BC
triadic
#9F34D6 #D69F34 #34D69F
tetradic
#9F34D6 #D64E34 #6BD634 #34BCD6
square
#9F34D6 #D64E34 #6BD634 #34BCD6
split-complementary
#9F34D6 #BCD634 #34D64E
monochromatic
#571877 #7C22AA #9F34D6 #B767E0 #CF9AEB

Accessibility & contrast

On white

5.33
#9F34D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9F34D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F34D6
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F34D6#FFFFFF#000000##FFFFFF
##9F34D61.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DA
Deuteranopia (green-blind)
#0C6DD3
Tritanopia (blue-blind)
#985B84
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9f34d6;
/* rgb */ color: rgb(159, 52, 214);
/* oklch */ color: oklch(55.8% 0.236 311.0);
Tailwind
colors: {
  custom: {
    50: '#c077e4',
    500: '#9f34d6',
    950: '#000000',
  },
}
SCSS
$custom: #9f34d6;
$custom-light: #c077e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f34d6",
  "rgb": {
    "r": 159,
    "g": 52,
    "b": 214
  },
  "hsl": {
    "h": 279.63,
    "s": 66.393,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55791,
    "c": 0.23599,
    "h": 311
  },
  "luminance": 0.14682
}

Semantic roles & 50–950 ramp

primary
#9F34D6
secondary
#A8D690
accent
#E93E78
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9F34D6

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

Preview Lab → · Contrast checker → · Palette generator →

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