#5E34BB#5E34BB

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

Color values

HEX#5E34BB
RGBrgb(94, 52, 187)
HSLhsl(259, 56%, 47%)
HSVhsv(259, 72%, 73%)
CMYKcmyk(49.7%, 72.2%, 0%, 26.7%)
CIE-LABlab(34.85, 49.89, -64.39)
CIE-LCHlch(34.85, 81.45, 307.77°)
OKLaboklab(46.05% 0.07 -0.1848)
OKLCHoklch(46.05% 0.198 290.8)
XYZxyz(14.8112, 8.4229, 47.8495)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34BB #91BB34
analogous
#344DBB #5E34BB #A234BB
triadic
#5E34BB #BB5E34 #34BB5E
tetradic
#5E34BB #BB344D #91BB34 #34BBA2
square
#5E34BB #BB344D #91BB34 #34BBA2
split-complementary
#5E34BB #BBA234 #4DBB34
monochromatic
#2E195B #46278B #5E34BB #805BD1 #A58BDF

Accessibility & contrast

On white

7.82
#5E34BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E34BB
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34BB#FFFFFF#000000##FFFFFF
##5E34BB1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#3F5874
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e34bb;
/* rgb */ color: rgb(94, 52, 187);
/* oklch */ color: oklch(46.0% 0.198 290.8);
Tailwind
colors: {
  custom: {
    50: '#946fd1',
    500: '#5e34bb',
    950: '#000000',
  },
}
SCSS
$custom: #5e34bb;
$custom-light: #946fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34bb",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 258.667,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46047,
    "c": 0.19763,
    "h": 290.8
  },
  "luminance": 0.08424
}

Semantic roles & 50–950 ramp

primary
#5E34BB
secondary
#B3C982
accent
#E048B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5E34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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