#5A35CC#5A35CC

#5A35CC is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.216 H 286.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5A35CC
RGBrgb(90, 53, 204)
HSLhsl(255, 60%, 50%)
HSVhsv(255, 74%, 80%)
CMYKcmyk(55.9%, 74%, 0%, 20%)
CIE-LABlab(36.14, 53.56, -72.24)
CIE-LCHlch(36.14, 89.93, 306.55°)
OKLaboklab(47.32% 0.0595 -0.2079)
OKLCHoklch(47.32% 0.216 286)
XYZxyz(16.3854, 9.0786, 58.0040)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35CC #A7CC35
analogous
#355BCC #5A35CC #A535CC
triadic
#5A35CC #CC5A35 #35CC5A
tetradic
#5A35CC #CC355B #A7CC35 #35CCA5
square
#5A35CC #CC355B #A7CC35 #35CCA5
split-complementary
#5A35CC #CCA535 #5BCC35
monochromatic
#2F1B6B #44279C #5A35CC #8266D8 #AA97E5

Accessibility & contrast

On white

7.46
#5A35CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5A35CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35CC
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35CC#FFFFFF#000000##FFFFFF
##5A35CC1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a35cc;
/* rgb */ color: rgb(90, 53, 204);
/* oklch */ color: oklch(47.3% 0.216 286.0);
Tailwind
colors: {
  custom: {
    50: '#9570dd',
    500: '#5a35cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a35cc;
$custom-light: #9570dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35cc",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 204
  },
  "hsl": {
    "h": 254.702,
    "s": 59.684,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47323,
    "c": 0.21629,
    "h": 286
  },
  "luminance": 0.09079
}

Semantic roles & 50–950 ramp

primary
#5A35CC
secondary
#C0D08D
accent
#E345BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A35CC

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

Preview Lab → · Contrast checker → · Palette generator →

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