#5A34CA#5A34CA

#5A34CA is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.215 H 286.4°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5A34CA
RGBrgb(90, 52, 202)
HSLhsl(255, 59%, 50%)
HSVhsv(255, 74%, 79%)
CMYKcmyk(55.4%, 74.3%, 0%, 20.8%)
CIE-LABlab(35.78, 53.48, -71.67)
CIE-LCHlch(35.78, 89.42, 306.73°)
OKLaboklab(47.02% 0.0607 -0.2063)
OKLCHoklch(47.02% 0.215 286.4)
XYZxyz(16.1019, 8.8930, 56.7337)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34CA #A4CA34
analogous
#3459CA #5A34CA #A534CA
triadic
#5A34CA #CA5A34 #34CA5A
tetradic
#5A34CA #CA3459 #A4CA34 #34CAA5
square
#5A34CA #CA3459 #A4CA34 #34CAA5
split-complementary
#5A34CA #CAA534 #59CA34
monochromatic
#2F1B69 #442799 #5A34CA #8164D7 #A995E4

Accessibility & contrast

On white

7.56
#5A34CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5A34CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34CA
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34CA#FFFFFF#000000##FFFFFF
##5A34CA1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#275E7D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a34ca;
/* rgb */ color: rgb(90, 52, 202);
/* oklch */ color: oklch(47.0% 0.215 286.4);
Tailwind
colors: {
  custom: {
    50: '#9470db',
    500: '#5a34ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a34ca;
$custom-light: #9470db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34ca",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 255.2,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47015,
    "c": 0.21501,
    "h": 286.4
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#5A34CA
secondary
#BECF8B
accent
#E246BB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A34CA

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

Preview Lab → · Contrast checker → · Palette generator →

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