#5A34C0#5A34C0

#5A34C0 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.1% C 0.204 H 288.1°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5A34C0
RGBrgb(90, 52, 192)
HSLhsl(256, 57%, 48%)
HSVhsv(256, 73%, 75%)
CMYKcmyk(53.1%, 72.9%, 0%, 24.7%)
CIE-LABlab(34.87, 50.66, -67.31)
CIE-LCHlch(34.87, 84.24, 306.97°)
OKLaboklab(46.1% 0.0631 -0.1935)
OKLCHoklch(46.1% 0.204 288.1)
XYZxyz(14.9561, 8.4347, 50.6989)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34C0 #9AC034
analogous
#3454C0 #5A34C0 #A034C0
triadic
#5A34C0 #C05A34 #34C05A
tetradic
#5A34C0 #C03454 #9AC034 #34C0A0
square
#5A34C0 #C03454 #9AC034 #34C0A0
split-complementary
#5A34C0 #C0A034 #54C034
monochromatic
#2D1A60 #432790 #5A34C0 #7E5ED3 #A48EE0

Accessibility & contrast

On white

7.82
#5A34C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5A34C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34C0
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34C0#FFFFFF#000000##FFFFFF
##5A34C01.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C4
Deuteranopia (green-blind)
#004EBD
Tritanopia (blue-blind)
#325A77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a34c0;
/* rgb */ color: rgb(90, 52, 192);
/* oklch */ color: oklch(46.1% 0.204 288.1);
Tailwind
colors: {
  custom: {
    50: '#936fd4',
    500: '#5a34c0',
    950: '#000000',
  },
}
SCSS
$custom: #5a34c0;
$custom-light: #936fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34c0",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 192
  },
  "hsl": {
    "h": 256.286,
    "s": 57.377,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46101,
    "c": 0.20352,
    "h": 288.1
  },
  "luminance": 0.08435
}

Semantic roles & 50–950 ramp

primary
#5A34C0
secondary
#B8CB85
accent
#E147B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A34C0

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

Preview Lab → · Contrast checker → · Palette generator →

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