#5E34B3#5E34B3

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

Color values

HEX#5E34B3
RGBrgb(94, 52, 179)
HSLhsl(260, 55%, 45%)
HSVhsv(260, 71%, 70%)
CMYKcmyk(47.5%, 70.9%, 0%, 29.8%)
CIE-LABlab(34.17, 47.68, -60.76)
CIE-LCHlch(34.17, 77.23, 308.12°)
OKLaboklab(45.36% 0.0717 -0.1742)
OKLCHoklch(45.36% 0.188 292.4)
XYZxyz(13.9785, 8.0899, 43.4641)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34B3 #89B334
analogous
#3449B3 #5E34B3 #9E34B3
triadic
#5E34B3 #B35E34 #34B35E
tetradic
#5E34B3 #B33449 #89B334 #34B39E
square
#5E34B3 #B33449 #89B334 #34B39E
split-complementary
#5E34B3 #B39E34 #49B334
monochromatic
#2C1854 #452684 #5E34B3 #7E56CE #A286DC

Accessibility & contrast

On white

8.02
#5E34B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5E34B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34B3
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34B3#FFFFFF#000000##FFFFFF
##5E34B31.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#445470
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e34b3;
/* rgb */ color: rgb(94, 52, 179);
/* oklch */ color: oklch(45.4% 0.188 292.4);
Tailwind
colors: {
  custom: {
    50: '#936fcb',
    500: '#5e34b3',
    950: '#000000',
  },
}
SCSS
$custom: #5e34b3;
$custom-light: #936fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34b3",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 259.843,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45355,
    "c": 0.18834,
    "h": 292.4
  },
  "luminance": 0.0809
}

Semantic roles & 50–950 ramp

primary
#5E34B3
secondary
#AEC57D
accent
#DE49AD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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