#5E34BC#5E34BC

#5E34BC is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.199 H 290.6°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5E34BC
RGBrgb(94, 52, 188)
HSLhsl(259, 57%, 47%)
HSVhsv(259, 72%, 74%)
CMYKcmyk(50%, 72.3%, 0%, 26.3%)
CIE-LABlab(34.93, 50.16, -64.83)
CIE-LCHlch(34.93, 81.97, 307.73°)
OKLaboklab(46.13% 0.0698 -0.1861)
OKLCHoklch(46.13% 0.199 290.6)
XYZxyz(14.9186, 8.4659, 48.4152)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34BC #92BC34
analogous
#344EBC #5E34BC #A234BC
triadic
#5E34BC #BC5E34 #34BC5E
tetradic
#5E34BC #BC344E #92BC34 #34BCA2
square
#5E34BC #BC344E #92BC34 #34BCA2
split-complementary
#5E34BC #BCA234 #4EBC34
monochromatic
#2E195C #46278C #5E34BC #805BD2 #A58BDF

Accessibility & contrast

On white

7.80
#5E34BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5E34BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34BC
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34BC#FFFFFF#000000##FFFFFF
##5E34BC1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#3E5875
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e34bc;
/* rgb */ color: rgb(94, 52, 188);
/* oklch */ color: oklch(46.1% 0.199 290.6);
Tailwind
colors: {
  custom: {
    50: '#956fd1',
    500: '#5e34bc',
    950: '#000000',
  },
}
SCSS
$custom: #5e34bc;
$custom-light: #956fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34bc",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 258.529,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46134,
    "c": 0.19878,
    "h": 290.6
  },
  "luminance": 0.08467
}

Semantic roles & 50–950 ramp

primary
#5E34BC
secondary
#B3C983
accent
#E048B1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5E34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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