#5A35D0#5A35D0

#5A35D0 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.221 H 285.4°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5A35D0
RGBrgb(90, 53, 208)
HSLhsl(254, 62%, 51%)
HSVhsv(254, 75%, 82%)
CMYKcmyk(56.7%, 74.5%, 0%, 18.4%)
CIE-LABlab(36.50, 54.69, -73.95)
CIE-LCHlch(36.50, 91.98, 306.48°)
OKLaboklab(47.7% 0.0585 -0.213)
OKLCHoklch(47.7% 0.221 285.4)
XYZxyz(16.8713, 9.2729, 60.5631)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35D0 #ABD035
analogous
#355DD0 #5A35D0 #A835D0
triadic
#5A35D0 #D05A35 #35D05A
tetradic
#5A35D0 #D0355D #ABD035 #35D0A8
square
#5A35D0 #D0355D #ABD035 #35D0A8
split-complementary
#5A35D0 #D0A835 #5DD035
monochromatic
#2F1A70 #4326A2 #5A35D0 #8367DC #AB98E7

Accessibility & contrast

On white

7.36
#5A35D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A35D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35D0
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35D0#FFFFFF#000000##FFFFFF
##5A35D01.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD4
Deuteranopia (green-blind)
#0051CD
Tritanopia (blue-blind)
#1E6080
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a35d0;
/* rgb */ color: rgb(90, 53, 208);
/* oklch */ color: oklch(47.7% 0.221 285.4);
Tailwind
colors: {
  custom: {
    50: '#9570e0',
    500: '#5a35d0',
    950: '#000000',
  },
}
SCSS
$custom: #5a35d0;
$custom-light: #9570e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35d0",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 208
  },
  "hsl": {
    "h": 254.323,
    "s": 62.249,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47695,
    "c": 0.22086,
    "h": 285.4
  },
  "luminance": 0.09274
}

Semantic roles & 50–950 ramp

primary
#5A35D0
secondary
#C2D38E
accent
#E542BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A35D0

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

Preview Lab → · Contrast checker → · Palette generator →

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