#5E34CF#5E34CF

#5E34CF is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.220 H 287.2°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5E34CF
RGBrgb(94, 52, 207)
HSLhsl(256, 62%, 51%)
HSVhsv(256, 75%, 81%)
CMYKcmyk(54.6%, 74.9%, 0%, 18.8%)
CIE-LABlab(36.63, 55.43, -73.15)
CIE-LCHlch(36.63, 91.78, 307.15°)
OKLaboklab(47.85% 0.0653 -0.2105)
OKLCHoklch(47.85% 0.22 287.2)
XYZxyz(17.1032, 9.3398, 59.9209)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34CF #A5CF34
analogous
#3457CF #5E34CF #AB34CF
triadic
#5E34CF #CF5E34 #34CF5E
tetradic
#5E34CF #CF3457 #A5CF34 #34CFAB
square
#5E34CF #CF3457 #A5CF34 #34CFAB
split-complementary
#5E34CF #CFAB34 #57CF34
monochromatic
#311A6E #4726A0 #5E34CF #8565DB #AD97E6

Accessibility & contrast

On white

7.32
#5E34CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5E34CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34CF
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34CF#FFFFFF#000000##FFFFFF
##5E34CF1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#2D5F7F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5e34cf;
/* rgb */ color: rgb(94, 52, 207);
/* oklch */ color: oklch(47.8% 0.220 287.2);
Tailwind
colors: {
  custom: {
    50: '#9770df',
    500: '#5e34cf',
    950: '#000000',
  },
}
SCSS
$custom: #5e34cf;
$custom-light: #9770df;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34cf",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 256.258,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47848,
    "c": 0.22038,
    "h": 287.2
  },
  "luminance": 0.09341
}

Semantic roles & 50–950 ramp

primary
#5E34CF
secondary
#BFD28D
accent
#E543B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5E34CF

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

Preview Lab → · Contrast checker → · Palette generator →

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