#5A34CD#5A34CD

#5A34CD is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.218 H 285.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5A34CD
RGBrgb(90, 52, 205)
HSLhsl(255, 60%, 50%)
HSVhsv(255, 75%, 80%)
CMYKcmyk(56.1%, 74.6%, 0%, 19.6%)
CIE-LABlab(36.05, 54.33, -72.95)
CIE-LCHlch(36.05, 90.96, 306.67°)
OKLaboklab(47.29% 0.06 -0.21)
OKLCHoklch(47.29% 0.218 285.9)
XYZxyz(16.4606, 9.0365, 58.6226)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34CD #A7CD34
analogous
#345ACD #5A34CD #A634CD
triadic
#5A34CD #CD5A34 #34CD5A
tetradic
#5A34CD #CD345A #A7CD34 #34CDA6
square
#5A34CD #CD345A #A7CD34 #34CDA6
split-complementary
#5A34CD #CDA634 #5ACD34
monochromatic
#2F1B6C #44279D #5A34CD #8265D9 #AA96E5

Accessibility & contrast

On white

7.48
#5A34CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5A34CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34CD
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34CD#FFFFFF#000000##FFFFFF
##5A34CD1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#0050CA
Tritanopia (blue-blind)
#235F7E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a34cd;
/* rgb */ color: rgb(90, 52, 205);
/* oklch */ color: oklch(47.3% 0.218 285.9);
Tailwind
colors: {
  custom: {
    50: '#9570de',
    500: '#5a34cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a34cd;
$custom-light: #9570de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34cd",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 254.902,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47294,
    "c": 0.21843,
    "h": 285.9
  },
  "luminance": 0.09037
}

Semantic roles & 50–950 ramp

primary
#5A34CD
secondary
#C0D18C
accent
#E444BC
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A34CD

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

Preview Lab → · Contrast checker → · Palette generator →

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