#5A35B3#5A35B3

#5A35B3 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.187 H 290.3°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5A35B3
RGBrgb(90, 53, 179)
HSLhsl(258, 54%, 45%)
HSVhsv(258, 70%, 70%)
CMYKcmyk(49.7%, 70.4%, 0%, 29.8%)
CIE-LABlab(33.93, 46.46, -61.17)
CIE-LCHlch(33.93, 76.82, 307.22°)
OKLaboklab(45.08% 0.0649 -0.1755)
OKLCHoklch(45.08% 0.187 290.3)
XYZxyz(13.6239, 7.9740, 43.4604)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35B3 #8EB335
analogous
#354FB3 #5A35B3 #9935B3
triadic
#5A35B3 #B35A35 #35B35A
tetradic
#5A35B3 #B3354F #8EB335 #35B399
square
#5A35B3 #B3354F #8EB335 #35B399
split-complementary
#5A35B3 #B39935 #4FB335
monochromatic
#2B1955 #422784 #5A35B3 #7A58CD #A087DB

Accessibility & contrast

On white

8.09
#5A35B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5A35B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35B3
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35B3#FFFFFF#000000##FFFFFF
##5A35B31.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#3C5570
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a35b3;
/* rgb */ color: rgb(90, 53, 179);
/* oklch */ color: oklch(45.1% 0.187 290.3);
Tailwind
colors: {
  custom: {
    50: '#916fcb',
    500: '#5a35b3',
    950: '#000000',
  },
}
SCSS
$custom: #5a35b3;
$custom-light: #916fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35b3",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 179
  },
  "hsl": {
    "h": 257.619,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45084,
    "c": 0.18714,
    "h": 290.3
  },
  "luminance": 0.07975
}

Semantic roles & 50–950 ramp

primary
#5A35B3
secondary
#B1C57F
accent
#DE4AB2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A35B3

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

Preview Lab → · Contrast checker → · Palette generator →

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