#5A34CC#5A34CC

#5A34CC is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.217 H 286.1°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5A34CC
RGBrgb(90, 52, 204)
HSLhsl(255, 60%, 50%)
HSVhsv(255, 75%, 80%)
CMYKcmyk(55.9%, 74.5%, 0%, 20%)
CIE-LABlab(35.96, 54.05, -72.53)
CIE-LCHlch(35.96, 90.45, 306.69°)
OKLaboklab(47.2% 0.0602 -0.2088)
OKLCHoklch(47.2% 0.217 286.1)
XYZxyz(16.3402, 8.9883, 57.9889)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A34CC #A6CC34
analogous
#345ACC #5A34CC #A634CC
triadic
#5A34CC #CC5A34 #34CC5A
tetradic
#5A34CC #CC345A #A6CC34 #34CCA6
square
#5A34CC #CC345A #A6CC34 #34CCA6
split-complementary
#5A34CC #CCA634 #5ACC34
monochromatic
#2F1B6B #44279C #5A34CC #8265D8 #AA96E5

Accessibility & contrast

On white

7.51
#5A34CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5A34CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A34CC
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A34CC#FFFFFF#000000##FFFFFF
##5A34CC1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#0050C9
Tritanopia (blue-blind)
#245E7E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a34cc;
/* rgb */ color: rgb(90, 52, 204);
/* oklch */ color: oklch(47.2% 0.217 286.1);
Tailwind
colors: {
  custom: {
    50: '#9570dd',
    500: '#5a34cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a34cc;
$custom-light: #9570dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a34cc",
  "rgb": {
    "r": 90,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 255,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47201,
    "c": 0.21729,
    "h": 286.1
  },
  "luminance": 0.08989
}

Semantic roles & 50–950 ramp

primary
#5A34CC
secondary
#BFD08C
accent
#E345BB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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