#9E34D6#9E34D6

#9E34D6 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.7% C 0.236 H 310.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#9E34D6
RGBrgb(158, 52, 214)
HSLhsl(279, 66%, 52%)
HSVhsv(279, 76%, 84%)
CMYKcmyk(26.2%, 75.7%, 0%, 16.1%)
CIE-LABlab(45.05, 67.39, -63.11)
CIE-LCHlch(45.05, 92.33, 316.88°)
OKLaboklab(55.66% 0.1535 -0.1789)
OKLCHoklch(55.66% 0.236 310.6)
XYZxyz(27.4638, 14.5808, 64.9729)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E34D6 #6CD634
analogous
#4D34D6 #9E34D6 #D634BD
triadic
#9E34D6 #D69E34 #34D69E
tetradic
#9E34D6 #D64D34 #6CD634 #34BDD6
square
#9E34D6 #D64D34 #6CD634 #34BDD6
split-complementary
#9E34D6 #BDD634 #34D64D
monochromatic
#571877 #7B22AA #9E34D6 #B667E0 #CF9AEB

Accessibility & contrast

On white

5.36
#9E34D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#9E34D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E34D6
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E34D6#FFFFFF#000000##FFFFFF
##9E34D61.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DA
Deuteranopia (green-blind)
#066CD3
Tritanopia (blue-blind)
#965B84
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9e34d6;
/* rgb */ color: rgb(158, 52, 214);
/* oklch */ color: oklch(55.7% 0.236 310.6);
Tailwind
colors: {
  custom: {
    50: '#c077e4',
    500: '#9e34d6',
    950: '#000000',
  },
}
SCSS
$custom: #9e34d6;
$custom-light: #c077e4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e34d6",
  "rgb": {
    "r": 158,
    "g": 52,
    "b": 214
  },
  "hsl": {
    "h": 279.259,
    "s": 66.393,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55662,
    "c": 0.2357,
    "h": 310.6
  },
  "luminance": 0.1458
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E34D6

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

Preview Lab → · Contrast checker → · Palette generator →

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