#5E34AA#5E34AA

#5E34AA is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.178 H 294.4°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#5E34AA
RGBrgb(94, 52, 170)
HSLhsl(261, 53%, 44%)
HSVhsv(261, 69%, 67%)
CMYKcmyk(44.7%, 69.4%, 0%, 33.3%)
CIE-LABlab(33.43, 45.20, -56.60)
CIE-LCHlch(33.43, 72.43, 308.61°)
OKLaboklab(44.6% 0.0733 -0.1619)
OKLCHoklch(44.6% 0.178 294.4)
XYZxyz(13.0978, 7.7376, 38.8258)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34AA #80AA34
analogous
#3445AA #5E34AA #9934AA
triadic
#5E34AA #AA5E34 #34AA5E
tetradic
#5E34AA #AA3445 #80AA34 #34AA99
square
#5E34AA #AA3445 #80AA34 #34AA99
split-complementary
#5E34AA #AA9934 #45AA34
monochromatic
#2A174C #44267B #5E34AA #7C51CA #A080D8

Accessibility & contrast

On white

8.24
#5E34AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5E34AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34AA
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34AA#FFFFFF#000000##FFFFFF
##5E34AA1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#49516B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5e34aa;
/* rgb */ color: rgb(94, 52, 170);
/* oklch */ color: oklch(44.6% 0.178 294.4);
Tailwind
colors: {
  custom: {
    50: '#926fc4',
    500: '#5e34aa',
    950: '#000000',
  },
}
SCSS
$custom: #5e34aa;
$custom-light: #926fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34aa",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 261.356,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44598,
    "c": 0.17776,
    "h": 294.4
  },
  "luminance": 0.07738
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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