#5A35CA#5A35CA

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

Color values

HEX#5A35CA
RGBrgb(90, 53, 202)
HSLhsl(255, 58%, 50%)
HSVhsv(255, 74%, 79%)
CMYKcmyk(55.4%, 73.8%, 0%, 20.8%)
CIE-LABlab(35.95, 52.99, -71.38)
CIE-LCHlch(35.95, 88.90, 306.59°)
OKLaboklab(47.14% 0.06 -0.2054)
OKLCHoklch(47.14% 0.214 286.3)
XYZxyz(16.1470, 8.9832, 56.7488)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35CA #A5CA35
analogous
#355BCA #5A35CA #A435CA
triadic
#5A35CA #CA5A35 #35CA5A
tetradic
#5A35CA #CA355B #A5CA35 #35CAA4
square
#5A35CA #CA355B #A5CA35 #35CAA4
split-complementary
#5A35CA #CAA435 #5BCA35
monochromatic
#2F1C69 #44289A #5A35CA #8265D7 #A996E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A35CA#FFFFFF#000000##FFFFFF
##5A35CA1.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)
#0058CE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#275E7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a35ca;
/* rgb */ color: rgb(90, 53, 202);
/* oklch */ color: oklch(47.1% 0.214 286.3);
Tailwind
colors: {
  custom: {
    50: '#9470db',
    500: '#5a35ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a35ca;
$custom-light: #9470db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35ca",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 202
  },
  "hsl": {
    "h": 254.899,
    "s": 58.431,
    "l": 50
  },
  "oklch": {
    "l": 0.47138,
    "c": 0.21401,
    "h": 286.3
  },
  "luminance": 0.08984
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A35CA

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

Preview Lab → · Contrast checker → · Palette generator →

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