#5A35C8#5A35C8

#5A35C8 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.212 H 286.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5A35C8
RGBrgb(90, 53, 200)
HSLhsl(255, 58%, 50%)
HSVhsv(255, 74%, 78%)
CMYKcmyk(55%, 73.5%, 0%, 21.6%)
CIE-LABlab(35.77, 52.42, -70.51)
CIE-LCHlch(35.77, 87.87, 306.63°)
OKLaboklab(46.95% 0.0605 -0.2029)
OKLCHoklch(46.95% 0.212 286.6)
XYZxyz(15.9118, 8.8891, 55.5097)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35C8 #A3C835
analogous
#355AC8 #5A35C8 #A435C8
triadic
#5A35C8 #C85A35 #35C85A
tetradic
#5A35C8 #C8355A #A3C835 #35C8A4
square
#5A35C8 #C8355A #A3C835 #35C8A4
split-complementary
#5A35C8 #C8A435 #5AC835
monochromatic
#2E1B67 #442898 #5A35C8 #8164D6 #A895E3

Accessibility & contrast

On white

7.56
#5A35C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5A35C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35C8
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35C8#FFFFFF#000000##FFFFFF
##5A35C81.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#0050C5
Tritanopia (blue-blind)
#295D7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a35c8;
/* rgb */ color: rgb(90, 53, 200);
/* oklch */ color: oklch(47.0% 0.212 286.6);
Tailwind
colors: {
  custom: {
    50: '#9470da',
    500: '#5a35c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a35c8;
$custom-light: #9470da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35c8",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 200
  },
  "hsl": {
    "h": 255.102,
    "s": 58.103,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46954,
    "c": 0.21171,
    "h": 286.6
  },
  "luminance": 0.0889
}

Semantic roles & 50–950 ramp

primary
#5A35C8
secondary
#BDCE8B
accent
#E146BA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A35C8

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

Preview Lab → · Contrast checker → · Palette generator →

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