#5E34B4#5E34B4

#5E34B4 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.190 H 292.2°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5E34B4
RGBrgb(94, 52, 180)
HSLhsl(260, 55%, 45%)
HSVhsv(260, 71%, 71%)
CMYKcmyk(47.8%, 71.1%, 0%, 29.4%)
CIE-LABlab(34.25, 47.95, -61.22)
CIE-LCHlch(34.25, 77.76, 308.07°)
OKLaboklab(45.44% 0.0715 -0.1755)
OKLCHoklch(45.44% 0.19 292.2)
XYZxyz(14.0800, 8.1305, 43.9986)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34B4 #8AB434
analogous
#344AB4 #5E34B4 #9E34B4
triadic
#5E34B4 #B45E34 #34B45E
tetradic
#5E34B4 #B4344A #8AB434 #34B49E
square
#5E34B4 #B4344A #8AB434 #34B49E
split-complementary
#5E34B4 #B49E34 #4AB434
monochromatic
#2C1955 #452685 #5E34B4 #7E57CE #A286DC

Accessibility & contrast

On white

8.00
#5E34B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5E34B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34B4
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34B4#FFFFFF#000000##FFFFFF
##5E34B41.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#435570
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e34b4;
/* rgb */ color: rgb(94, 52, 180);
/* oklch */ color: oklch(45.4% 0.190 292.2);
Tailwind
colors: {
  custom: {
    50: '#936fcb',
    500: '#5e34b4',
    950: '#000000',
  },
}
SCSS
$custom: #5e34b4;
$custom-light: #936fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34b4",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 259.688,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4544,
    "c": 0.1895,
    "h": 292.2
  },
  "luminance": 0.08131
}

Semantic roles & 50–950 ramp

primary
#5E34B4
secondary
#AEC67E
accent
#DF49AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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