#5E34CD#5E34CD

#5E34CD is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.218 H 287.6°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#5E34CD
RGBrgb(94, 52, 205)
HSLhsl(256, 60%, 50%)
HSVhsv(256, 75%, 80%)
CMYKcmyk(54.1%, 74.6%, 0%, 19.6%)
CIE-LABlab(36.45, 54.87, -72.30)
CIE-LCHlch(36.45, 90.76, 307.20°)
OKLaboklab(47.66% 0.0658 -0.208)
OKLCHoklch(47.66% 0.218 287.6)
XYZxyz(16.8603, 9.2426, 58.6414)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34CD #A3CD34
analogous
#3456CD #5E34CD #AB34CD
triadic
#5E34CD #CD5E34 #34CD5E
tetradic
#5E34CD #CD3456 #A3CD34 #34CDAB
square
#5E34CD #CD3456 #A3CD34 #34CDAB
split-complementary
#5E34CD #CDAB34 #56CD34
monochromatic
#311B6C #47279D #5E34CD #8565D9 #AC96E5

Accessibility & contrast

On white

7.37
#5E34CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5E34CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34CD
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34CD#FFFFFF#000000##FFFFFF
##5E34CD1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#0052CA
Tritanopia (blue-blind)
#2F5F7E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5e34cd;
/* rgb */ color: rgb(94, 52, 205);
/* oklch */ color: oklch(47.7% 0.218 287.6);
Tailwind
colors: {
  custom: {
    50: '#9770dd',
    500: '#5e34cd',
    950: '#000000',
  },
}
SCSS
$custom: #5e34cd;
$custom-light: #9770dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34cd",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 256.471,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47664,
    "c": 0.21814,
    "h": 287.6
  },
  "luminance": 0.09243
}

Semantic roles & 50–950 ramp

primary
#5E34CD
secondary
#BED18C
accent
#E444B8
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5E34CD

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

Preview Lab → · Contrast checker → · Palette generator →

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