#5E34AF#5E34AF

#5E34AF is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.184 H 293.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5E34AF
RGBrgb(94, 52, 175)
HSLhsl(260, 54%, 45%)
HSVhsv(260, 70%, 69%)
CMYKcmyk(46.3%, 70.3%, 0%, 31.4%)
CIE-LABlab(33.84, 46.57, -58.92)
CIE-LCHlch(33.84, 75.11, 308.32°)
OKLaboklab(45.02% 0.0724 -0.1688)
OKLCHoklch(45.02% 0.184 293.2)
XYZxyz(13.5798, 7.9304, 41.3643)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34AF #85AF34
analogous
#3447AF #5E34AF #9C34AF
triadic
#5E34AF #AF5E34 #34AF5E
tetradic
#5E34AF #AF3447 #85AF34 #34AF9C
square
#5E34AF #AF3447 #85AF34 #34AF9C
split-complementary
#5E34AF #AF9C34 #47AF34
monochromatic
#2B1851 #452680 #5E34AF #7D54CC #A183DA

Accessibility & contrast

On white

8.12
#5E34AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5E34AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34AF
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34AF#FFFFFF#000000##FFFFFF
##5E34AF1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#46536E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e34af;
/* rgb */ color: rgb(94, 52, 175);
/* oklch */ color: oklch(45.0% 0.184 293.2);
Tailwind
colors: {
  custom: {
    50: '#936fc8',
    500: '#5e34af',
    950: '#000000',
  },
}
SCSS
$custom: #5e34af;
$custom-light: #936fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34af",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 260.488,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45015,
    "c": 0.18365,
    "h": 293.2
  },
  "luminance": 0.07931
}

Semantic roles & 50–950 ramp

primary
#5E34AF
secondary
#ABC47B
accent
#DE4AAB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E34AF

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

Preview Lab → · Contrast checker → · Palette generator →

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