#5A34CF#5A34CF

#5A34CF is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.5% C 0.221 H 285.6°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5A34CF
RGBrgb(90, 52, 207)
HSLhsl(255, 62%, 51%)
HSVhsv(255, 75%, 81%)
CMYKcmyk(56.5%, 74.9%, 0%, 18.8%)
CIE-LABlab(36.24, 54.89, -73.81)
CIE-LCHlch(36.24, 91.98, 306.64°)
OKLaboklab(47.48% 0.0595 -0.2125)
OKLCHoklch(47.48% 0.221 285.6)
XYZxyz(16.7035, 9.1337, 59.9022)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34CF #A9CF34
analogous
#345BCF #5A34CF #A834CF
triadic
#5A34CF #CF5A34 #34CF5A
tetradic
#5A34CF #CF345B #A9CF34 #34CFA8
square
#5A34CF #CF345B #A9CF34 #34CFA8
split-complementary
#5A34CF #CFA834 #5BCF34
monochromatic
#2F1A6E #4426A0 #5A34CF #8265DB #AA97E6

Accessibility & contrast

On white

7.43
#5A34CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A34CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34CF
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34CF#FFFFFF#000000##FFFFFF
##5A34CF1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#20607F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a34cf;
/* rgb */ color: rgb(90, 52, 207);
/* oklch */ color: oklch(47.5% 0.221 285.6);
Tailwind
colors: {
  custom: {
    50: '#9570df',
    500: '#5a34cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a34cf;
$custom-light: #9570df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34cf",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 254.71,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47481,
    "c": 0.2207,
    "h": 285.6
  },
  "luminance": 0.09135
}

Semantic roles & 50–950 ramp

primary
#5A34CF
secondary
#C1D28D
accent
#E543BD
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A34CF

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

Preview Lab → · Contrast checker → · Palette generator →

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