#9E34DB#9E34DB

#9E34DB is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 56.0% C 0.240 H 309.4°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9E34DB
RGBrgb(158, 52, 219)
HSLhsl(278, 70%, 53%)
HSVhsv(278, 76%, 86%)
CMYKcmyk(27.9%, 76.3%, 0%, 14.1%)
CIE-LABlab(45.41, 68.42, -65.39)
CIE-LCHlch(45.41, 94.64, 316.30°)
OKLaboklab(56.03% 0.1525 -0.1856)
OKLCHoklch(56.03% 0.24 309.4)
XYZxyz(28.1121, 14.8401, 68.3876)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E34DB #71DB34
analogous
#4A34DB #9E34DB #DB34C4
triadic
#9E34DB #DB9E34 #34DB9E
tetradic
#9E34DB #DB4A34 #71DB34 #34C4DB
square
#9E34DB #DB4A34 #71DB34 #34C4DB
split-complementary
#9E34DB #C4DB34 #34DB4A
monochromatic
#58167E #7D20B2 #9E34DB #B768E4 #D09CED

Accessibility & contrast

On white

5.29
#9E34DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#9E34DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E34DB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E34DB#FFFFFF#000000##FFFFFF
##9E34DB1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E0
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#955D87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9e34db;
/* rgb */ color: rgb(158, 52, 219);
/* oklch */ color: oklch(56.0% 0.240 309.4);
Tailwind
colors: {
  custom: {
    50: '#c077e7',
    500: '#9e34db',
    950: '#000000',
  },
}
SCSS
$custom: #9e34db;
$custom-light: #c077e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e34db",
  "rgb": {
    "r": 158,
    "g": 52,
    "b": 219
  },
  "hsl": {
    "h": 278.084,
    "s": 69.874,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56028,
    "c": 0.24021,
    "h": 309.4
  },
  "luminance": 0.1484
}

Semantic roles & 50–950 ramp

primary
#9E34DB
secondary
#ACD991
accent
#ED3B7C
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130916
muted
#827B84

Preview Lab

Preview with #9E34DB

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

Preview Lab → · Contrast checker → · Palette generator →

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