#5A35C2#5A35C2

#5A35C2 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.4% C 0.205 H 287.6°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#5A35C2
RGBrgb(90, 53, 194)
HSLhsl(256, 57%, 48%)
HSVhsv(256, 73%, 76%)
CMYKcmyk(53.6%, 72.7%, 0%, 23.9%)
CIE-LABlab(35.23, 50.72, -67.89)
CIE-LCHlch(35.23, 84.75, 306.76°)
OKLaboklab(46.41% 0.0618 -0.1952)
OKLCHoklch(46.41% 0.205 287.6)
XYZxyz(15.2243, 8.6141, 51.8890)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A35C2 #9DC235
analogous
#3556C2 #5A35C2 #A035C2
triadic
#5A35C2 #C25A35 #35C25A
tetradic
#5A35C2 #C23556 #9DC235 #35C2A0
square
#5A35C2 #C23556 #9DC235 #35C2A0
split-complementary
#5A35C2 #C2A035 #56C235
monochromatic
#2D1B62 #442892 #5A35C2 #7F60D4 #A691E1

Accessibility & contrast

On white

7.71
#5A35C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5A35C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A35C2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A35C2#FFFFFF#000000##FFFFFF
##5A35C21.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#004FBF
Tritanopia (blue-blind)
#305B78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a35c2;
/* rgb */ color: rgb(90, 53, 194);
/* oklch */ color: oklch(46.4% 0.205 287.6);
Tailwind
colors: {
  custom: {
    50: '#9370d6',
    500: '#5a35c2',
    950: '#000000',
  },
}
SCSS
$custom: #5a35c2;
$custom-light: #9370d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a35c2",
  "rgb": {
    "r": 90,
    "g": 53,
    "b": 194
  },
  "hsl": {
    "h": 255.745,
    "s": 57.085,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46408,
    "c": 0.20477,
    "h": 287.6
  },
  "luminance": 0.08615
}

Semantic roles & 50–950 ramp

primary
#5A35C2
secondary
#BACC87
accent
#E047B8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A35C2

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

Preview Lab → · Contrast checker → · Palette generator →

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