#5E34BA#5E34BA

#5E34BA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.196 H 291.0°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5E34BA
RGBrgb(94, 52, 186)
HSLhsl(259, 56%, 47%)
HSVhsv(259, 72%, 73%)
CMYKcmyk(49.5%, 72%, 0%, 27.1%)
CIE-LABlab(34.76, 49.61, -63.94)
CIE-LCHlch(34.76, 80.93, 307.81°)
OKLaboklab(45.96% 0.0703 -0.1835)
OKLCHoklch(45.96% 0.196 291)
XYZxyz(14.7045, 8.3803, 47.2876)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34BA #90BA34
analogous
#344DBA #5E34BA #A134BA
triadic
#5E34BA #BA5E34 #34BA5E
tetradic
#5E34BA #BA344D #90BA34 #34BAA1
square
#5E34BA #BA344D #90BA34 #34BAA1
split-complementary
#5E34BA #BAA134 #4DBA34
monochromatic
#2E195A #46278A #5E34BA #7F5AD1 #A48ADE

Accessibility & contrast

On white

7.85
#5E34BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5E34BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34BA
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34BA#FFFFFF#000000##FFFFFF
##5E34BA1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#3F5774
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e34ba;
/* rgb */ color: rgb(94, 52, 186);
/* oklch */ color: oklch(46.0% 0.196 291.0);
Tailwind
colors: {
  custom: {
    50: '#946fd0',
    500: '#5e34ba',
    950: '#000000',
  },
}
SCSS
$custom: #5e34ba;
$custom-light: #946fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34ba",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 258.806,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45959,
    "c": 0.19647,
    "h": 291
  },
  "luminance": 0.08381
}

Semantic roles & 50–950 ramp

primary
#5E34BA
secondary
#B2C881
accent
#E048B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E34BA

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

Preview Lab → · Contrast checker → · Palette generator →

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