#5E34AC#5E34AC

#5E34AC is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.180 H 293.9°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#5E34AC
RGBrgb(94, 52, 172)
HSLhsl(261, 54%, 44%)
HSVhsv(261, 70%, 67%)
CMYKcmyk(45.3%, 69.8%, 0%, 32.5%)
CIE-LABlab(33.59, 45.75, -57.53)
CIE-LCHlch(33.59, 73.50, 308.49°)
OKLaboklab(44.76% 0.073 -0.1647)
OKLCHoklch(44.76% 0.18 293.9)
XYZxyz(13.2884, 7.8138, 39.8298)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34AC #82AC34
analogous
#3446AC #5E34AC #9A34AC
triadic
#5E34AC #AC5E34 #34AC5E
tetradic
#5E34AC #AC3446 #82AC34 #34AC9A
square
#5E34AC #AC3446 #82AC34 #34AC9A
split-complementary
#5E34AC #AC9A34 #46AC34
monochromatic
#2B184E #44267D #5E34AC #7D52CB #A081D9

Accessibility & contrast

On white

8.19
#5E34AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E34AC
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34AC#FFFFFF#000000##FFFFFF
##5E34AC1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#48526C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5e34ac;
/* rgb */ color: rgb(94, 52, 172);
/* oklch */ color: oklch(44.8% 0.180 293.9);
Tailwind
colors: {
  custom: {
    50: '#926fc6',
    500: '#5e34ac',
    950: '#000000',
  },
}
SCSS
$custom: #5e34ac;
$custom-light: #926fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34ac",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 261,
    "s": 53.571,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44764,
    "c": 0.18013,
    "h": 293.9
  },
  "luminance": 0.07814
}

Semantic roles & 50–950 ramp

primary
#5E34AC
secondary
#A9C279
accent
#DD4BAA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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