#5E34B5#5E34B5

#5E34B5 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.191 H 292.0°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5E34B5
RGBrgb(94, 52, 181)
HSLhsl(260, 55%, 46%)
HSVhsv(260, 71%, 71%)
CMYKcmyk(48.1%, 71.3%, 0%, 29%)
CIE-LABlab(34.34, 48.23, -61.67)
CIE-LCHlch(34.34, 78.29, 308.02°)
OKLaboklab(45.53% 0.0713 -0.1768)
OKLCHoklch(45.53% 0.191 292)
XYZxyz(14.1822, 8.1714, 44.5371)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34B5 #8BB534
analogous
#344AB5 #5E34B5 #9E34B5
triadic
#5E34B5 #B55E34 #34B55E
tetradic
#5E34B5 #B5344A #8BB534 #34B59E
square
#5E34B5 #B5344A #8BB534 #34B59E
split-complementary
#5E34B5 #B59E34 #4AB534
monochromatic
#2D1956 #452685 #5E34B5 #7E57CF #A387DC

Accessibility & contrast

On white

7.97
#5E34B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5E34B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34B5
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34B5#FFFFFF#000000##FFFFFF
##5E34B51.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#425571
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5e34b5;
/* rgb */ color: rgb(94, 52, 181);
/* oklch */ color: oklch(45.5% 0.191 292.0);
Tailwind
colors: {
  custom: {
    50: '#946fcc',
    500: '#5e34b5',
    950: '#000000',
  },
}
SCSS
$custom: #5e34b5;
$custom-light: #946fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34b5",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 259.535,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45526,
    "c": 0.19067,
    "h": 292
  },
  "luminance": 0.08172
}

Semantic roles & 50–950 ramp

primary
#5E34B5
secondary
#AFC67F
accent
#DF49AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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