#5E34C2#5E34C2

#5E34C2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.206 H 289.4°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5E34C2
RGBrgb(94, 52, 194)
HSLhsl(258, 58%, 48%)
HSVhsv(258, 73%, 76%)
CMYKcmyk(51.5%, 73.2%, 0%, 23.9%)
CIE-LABlab(35.46, 51.83, -67.50)
CIE-LCHlch(35.46, 85.10, 307.52°)
OKLaboklab(46.67% 0.0685 -0.1939)
OKLCHoklch(46.67% 0.206 289.4)
XYZxyz(15.5789, 8.7300, 51.8927)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E34C2 #98C234
analogous
#3451C2 #5E34C2 #A534C2
triadic
#5E34C2 #C25E34 #34C25E
tetradic
#5E34C2 #C23451 #98C234 #34C2A5
square
#5E34C2 #C23451 #98C234 #34C2A5
split-complementary
#5E34C2 #C2A534 #51C234
monochromatic
#2F1A61 #472792 #5E34C2 #825FD4 #A88FE1

Accessibility & contrast

On white

7.65
#5E34C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5E34C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E34C2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E34C2#FFFFFF#000000##FFFFFF
##5E34C21.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#395A78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5e34c2;
/* rgb */ color: rgb(94, 52, 194);
/* oklch */ color: oklch(46.7% 0.206 289.4);
Tailwind
colors: {
  custom: {
    50: '#9570d6',
    500: '#5e34c2',
    950: '#000000',
  },
}
SCSS
$custom: #5e34c2;
$custom-light: #9570d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e34c2",
  "rgb": {
    "r": 94,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 257.746,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46666,
    "c": 0.20566,
    "h": 289.4
  },
  "luminance": 0.08731
}

Semantic roles & 50–950 ramp

primary
#5E34C2
secondary
#B7CC86
accent
#E147B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5E34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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