#5E34AB#5E34AB

#5E34AB is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.179 H 294.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5E34AB
RGBrgb(94, 52, 171)
HSLhsl(261, 53%, 44%)
HSVhsv(261, 70%, 67%)
CMYKcmyk(45%, 69.6%, 0%, 32.9%)
CIE-LABlab(33.51, 45.47, -57.07)
CIE-LCHlch(33.51, 72.97, 308.55°)
OKLaboklab(44.68% 0.0732 -0.1633)
OKLCHoklch(44.68% 0.179 294.1)
XYZxyz(13.1928, 7.7756, 39.3259)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34AB #81AB34
analogous
#3446AB #5E34AB #9934AB
triadic
#5E34AB #AB5E34 #34AB5E
tetradic
#5E34AB #AB3446 #81AB34 #34AB99
square
#5E34AB #AB3446 #81AB34 #34AB99
split-complementary
#5E34AB #AB9934 #46AB34
monochromatic
#2A174D #44267C #5E34AB #7C52CA #A081D9

Accessibility & contrast

On white

8.22
#5E34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5E34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34AB
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34AB#FFFFFF#000000##FFFFFF
##5E34AB1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#48516B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5e34ab;
/* rgb */ color: rgb(94, 52, 171);
/* oklch */ color: oklch(44.7% 0.179 294.1);
Tailwind
colors: {
  custom: {
    50: '#926fc5',
    500: '#5e34ab',
    950: '#000000',
  },
}
SCSS
$custom: #5e34ab;
$custom-light: #926fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34ab",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 261.176,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44681,
    "c": 0.17894,
    "h": 294.1
  },
  "luminance": 0.07776
}

Semantic roles & 50–950 ramp

primary
#5E34AB
secondary
#A8C279
accent
#DD4BA9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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