#5A35CE#5A35CE

#5A35CE is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.219 H 285.7°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5A35CE
RGBrgb(90, 53, 206)
HSLhsl(255, 61%, 51%)
HSVhsv(255, 74%, 81%)
CMYKcmyk(56.3%, 74.3%, 0%, 19.2%)
CIE-LABlab(36.32, 54.12, -73.10)
CIE-LCHlch(36.32, 90.96, 306.52°)
OKLaboklab(47.51% 0.059 -0.2105)
OKLCHoklch(47.51% 0.219 285.7)
XYZxyz(16.6268, 9.1751, 59.2754)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35CE #A9CE35
analogous
#355CCE #5A35CE #A635CE
triadic
#5A35CE #CE5A35 #35CE5A
tetradic
#5A35CE #CE355C #A9CE35 #35CEA6
square
#5A35CE #CE355C #A9CE35 #35CEA6
split-complementary
#5A35CE #CEA635 #5CCE35
monochromatic
#2F1B6E #44279F #5A35CE #8266DA #AA98E6

Accessibility & contrast

On white

7.41
#5A35CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5A35CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35CE
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35CE#FFFFFF#000000##FFFFFF
##5A35CE1.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D2
Deuteranopia (green-blind)
#0051CB
Tritanopia (blue-blind)
#21607F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a35ce;
/* rgb */ color: rgb(90, 53, 206);
/* oklch */ color: oklch(47.5% 0.219 285.7);
Tailwind
colors: {
  custom: {
    50: '#9570de',
    500: '#5a35ce',
    950: '#000000',
  },
}
SCSS
$custom: #5a35ce;
$custom-light: #9570de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35ce",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 206
  },
  "hsl": {
    "h": 254.51,
    "s": 60.956,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47508,
    "c": 0.21858,
    "h": 285.7
  },
  "luminance": 0.09176
}

Semantic roles & 50–950 ramp

primary
#5A35CE
secondary
#C1D18D
accent
#E444BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A35CE

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

Preview Lab → · Contrast checker → · Palette generator →

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