#5E34B2#5E34B2

#5E34B2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.187 H 292.6°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5E34B2
RGBrgb(94, 52, 178)
HSLhsl(260, 55%, 45%)
HSVhsv(260, 71%, 70%)
CMYKcmyk(47.2%, 70.8%, 0%, 30.2%)
CIE-LABlab(34.09, 47.40, -60.30)
CIE-LCHlch(34.09, 76.70, 308.17°)
OKLaboklab(45.27% 0.0719 -0.1728)
OKLCHoklch(45.27% 0.187 292.6)
XYZxyz(13.8777, 8.0496, 42.9334)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34B2 #88B234
analogous
#3449B2 #5E34B2 #9D34B2
triadic
#5E34B2 #B25E34 #34B25E
tetradic
#5E34B2 #B23449 #88B234 #34B29D
square
#5E34B2 #B23449 #88B234 #34B29D
split-complementary
#5E34B2 #B29D34 #49B234
monochromatic
#2C1853 #452683 #5E34B2 #7E56CE #A285DB

Accessibility & contrast

On white

8.05
#5E34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5E34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34B2
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34B2#FFFFFF#000000##FFFFFF
##5E34B21.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#44546F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e34b2;
/* rgb */ color: rgb(94, 52, 178);
/* oklch */ color: oklch(45.3% 0.187 292.6);
Tailwind
colors: {
  custom: {
    50: '#936fca',
    500: '#5e34b2',
    950: '#000000',
  },
}
SCSS
$custom: #5e34b2;
$custom-light: #936fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34b2",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 260,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45269,
    "c": 0.18717,
    "h": 292.6
  },
  "luminance": 0.0805
}

Semantic roles & 50–950 ramp

primary
#5E34B2
secondary
#ADC57D
accent
#DE4AAD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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