#5E34D7#5E34D7

#5E34D7 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.229 H 286.0°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#5E34D7
RGBrgb(94, 52, 215)
HSLhsl(255, 67%, 52%)
HSVhsv(255, 76%, 84%)
CMYKcmyk(56.3%, 75.8%, 0%, 15.7%)
CIE-LABlab(37.37, 57.64, -76.55)
CIE-LCHlch(37.37, 95.83, 306.98°)
OKLaboklab(48.59% 0.0632 -0.2204)
OKLCHoklch(48.59% 0.229 286)
XYZxyz(18.1061, 9.7409, 65.2029)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34D7 #ADD734
analogous
#345CD7 #5E34D7 #AF34D7
triadic
#5E34D7 #D75E34 #34D75E
tetradic
#5E34D7 #D7345C #ADD734 #34D7AF
square
#5E34D7 #D7345C #ADD734 #34D7AF
split-complementary
#5E34D7 #D7AF34 #5CD734
monochromatic
#311879 #4522AC #5E34D7 #8767E1 #AF9AEB

Accessibility & contrast

On white

7.12
#5E34D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5E34D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34D7
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34D7#FFFFFF#000000##FFFFFF
##5E34D71.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#0053D4
Tritanopia (blue-blind)
#236384
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e34d7;
/* rgb */ color: rgb(94, 52, 215);
/* oklch */ color: oklch(48.6% 0.229 286.0);
Tailwind
colors: {
  custom: {
    50: '#9971e5',
    500: '#5e34d7',
    950: '#000000',
  },
}
SCSS
$custom: #5e34d7;
$custom-light: #9971e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34d7",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 215
  },
  "hsl": {
    "h": 255.46,
    "s": 67.078,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48594,
    "c": 0.22932,
    "h": 286
  },
  "luminance": 0.09742
}

Semantic roles & 50–950 ramp

primary
#5E34D7
secondary
#C5D790
accent
#EA3EBE
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5E34D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5E34D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva