#5E34B6#5E34B6

#5E34B6 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.192 H 291.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5E34B6
RGBrgb(94, 52, 182)
HSLhsl(259, 56%, 46%)
HSVhsv(259, 71%, 71%)
CMYKcmyk(48.4%, 71.4%, 0%, 28.6%)
CIE-LABlab(34.42, 48.51, -62.13)
CIE-LCHlch(34.42, 78.82, 307.98°)
OKLaboklab(45.61% 0.0711 -0.1782)
OKLCHoklch(45.61% 0.192 291.8)
XYZxyz(14.2852, 8.2125, 45.0794)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34B6 #8CB634
analogous
#344BB6 #5E34B6 #9F34B6
triadic
#5E34B6 #B65E34 #34B65E
tetradic
#5E34B6 #B6344B #8CB634 #34B69F
square
#5E34B6 #B6344B #8CB634 #34B69F
split-complementary
#5E34B6 #B69F34 #4BB634
monochromatic
#2D1957 #452686 #5E34B6 #7E58CF #A388DD

Accessibility & contrast

On white

7.95
#5E34B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5E34B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34B6
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34B6#FFFFFF#000000##FFFFFF
##5E34B61.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#425671
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e34b6;
/* rgb */ color: rgb(94, 52, 182);
/* oklch */ color: oklch(45.6% 0.192 291.8);
Tailwind
colors: {
  custom: {
    50: '#946fcd',
    500: '#5e34b6',
    950: '#000000',
  },
}
SCSS
$custom: #5e34b6;
$custom-light: #946fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34b6",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 182
  },
  "hsl": {
    "h": 259.385,
    "s": 55.556,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45612,
    "c": 0.19183,
    "h": 291.8
  },
  "luminance": 0.08213
}

Semantic roles & 50–950 ramp

primary
#5E34B6
secondary
#B0C77F
accent
#DF49AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E34B6

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

Preview Lab → · Contrast checker → · Palette generator →

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