#5E34A4#5E34A4

#5E34A4 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.171 H 295.8°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5E34A4
RGBrgb(94, 52, 164)
HSLhsl(263, 52%, 42%)
HSVhsv(263, 68%, 64%)
CMYKcmyk(42.7%, 68.3%, 0%, 35.7%)
CIE-LABlab(32.95, 43.56, -53.77)
CIE-LCHlch(32.95, 69.20, 309.01°)
OKLaboklab(44.11% 0.0743 -0.1536)
OKLCHoklch(44.11% 0.171 295.8)
XYZxyz(12.5432, 7.5157, 35.9046)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34A4 #7AA434
analogous
#3442A4 #5E34A4 #9634A4
triadic
#5E34A4 #A45E34 #34A45E
tetradic
#5E34A4 #A43442 #7AA434 #34A496
square
#5E34A4 #A43442 #7AA434 #34A496
split-complementary
#5E34A4 #A49634 #42A434
monochromatic
#291747 #432576 #5E34A4 #7C4EC7 #9E7DD6

Accessibility & contrast

On white

8.39
#5E34A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5E34A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34A4
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34A4#FFFFFF#000000##FFFFFF
##5E34A41.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#004CA2
Tritanopia (blue-blind)
#4C4F68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e34a4;
/* rgb */ color: rgb(94, 52, 164);
/* oklch */ color: oklch(44.1% 0.171 295.8);
Tailwind
colors: {
  custom: {
    50: '#926ec0',
    500: '#5e34a4',
    950: '#000000',
  },
}
SCSS
$custom: #5e34a4;
$custom-light: #926ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34a4",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 164
  },
  "hsl": {
    "h": 262.5,
    "s": 51.852,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44107,
    "c": 0.17063,
    "h": 295.8
  },
  "luminance": 0.07516
}

Semantic roles & 50–950 ramp

primary
#5E34A4
secondary
#A3BF75
accent
#DB4CA6
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E34A4

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

Preview Lab → · Contrast checker → · Palette generator →

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