#5E34B9#5E34B9

#5E34B9 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.195 H 291.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5E34B9
RGBrgb(94, 52, 185)
HSLhsl(259, 56%, 46%)
HSVhsv(259, 72%, 73%)
CMYKcmyk(49.2%, 71.9%, 0%, 27.5%)
CIE-LABlab(34.68, 49.33, -63.49)
CIE-LCHlch(34.68, 80.40, 307.85°)
OKLaboklab(45.87% 0.0705 -0.1822)
OKLCHoklch(45.87% 0.195 291.1)
XYZxyz(14.5986, 8.3379, 46.7297)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34B9 #8FB934
analogous
#344DB9 #5E34B9 #A134B9
triadic
#5E34B9 #B95E34 #34B95E
tetradic
#5E34B9 #B9344D #8FB934 #34B9A1
square
#5E34B9 #B9344D #8FB934 #34B9A1
split-complementary
#5E34B9 #B9A134 #4DB934
monochromatic
#2D1959 #462789 #5E34B9 #7F5AD1 #A489DE

Accessibility & contrast

On white

7.87
#5E34B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5E34B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34B9
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34B9#FFFFFF#000000##FFFFFF
##5E34B91.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#004FB6
Tritanopia (blue-blind)
#405773
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e34b9;
/* rgb */ color: rgb(94, 52, 185);
/* oklch */ color: oklch(45.9% 0.195 291.1);
Tailwind
colors: {
  custom: {
    50: '#946fcf',
    500: '#5e34b9',
    950: '#000000',
  },
}
SCSS
$custom: #5e34b9;
$custom-light: #946fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34b9",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 185
  },
  "hsl": {
    "h": 258.947,
    "s": 56.118,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45872,
    "c": 0.19531,
    "h": 291.1
  },
  "luminance": 0.08338
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E34B9

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

Preview Lab → · Contrast checker → · Palette generator →

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