#5A34C4#5A34C4

#5A34C4 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.5% C 0.208 H 287.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5A34C4
RGBrgb(90, 52, 196)
HSLhsl(256, 58%, 49%)
HSVhsv(256, 73%, 77%)
CMYKcmyk(54.1%, 73.5%, 0%, 23.1%)
CIE-LABlab(35.23, 51.79, -69.06)
CIE-LCHlch(35.23, 86.32, 306.87°)
OKLaboklab(46.46% 0.0622 -0.1986)
OKLCHoklch(46.46% 0.208 287.4)
XYZxyz(15.4053, 8.6144, 53.0648)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34C4 #9EC434
analogous
#3456C4 #5A34C4 #A234C4
triadic
#5A34C4 #C45A34 #34C45A
tetradic
#5A34C4 #C43456 #9EC434 #34C4A2
square
#5A34C4 #C43456 #9EC434 #34C4A2
split-complementary
#5A34C4 #C4A234 #56C434
monochromatic
#2E1A63 #442794 #5A34C4 #7F60D5 #A691E2

Accessibility & contrast

On white

7.71
#5A34C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5A34C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34C4
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34C4#FFFFFF#000000##FFFFFF
##5A34C41.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#004FC1
Tritanopia (blue-blind)
#2E5B79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a34c4;
/* rgb */ color: rgb(90, 52, 196);
/* oklch */ color: oklch(46.5% 0.208 287.4);
Tailwind
colors: {
  custom: {
    50: '#936fd7',
    500: '#5a34c4',
    950: '#000000',
  },
}
SCSS
$custom: #5a34c4;
$custom-light: #936fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34c4",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 196
  },
  "hsl": {
    "h": 255.833,
    "s": 58.065,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46464,
    "c": 0.20814,
    "h": 287.4
  },
  "luminance": 0.08615
}

Semantic roles & 50–950 ramp

primary
#5A34C4
secondary
#BACC87
accent
#E147B8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A34C4

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

Preview Lab → · Contrast checker → · Palette generator →

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