#5B35C9#5B35C9

#5B35C9 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.1% C 0.213 H 286.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5B35C9
RGBrgb(91, 53, 201)
HSLhsl(255, 58%, 50%)
HSVhsv(255, 74%, 79%)
CMYKcmyk(54.7%, 73.6%, 0%, 21.2%)
CIE-LABlab(35.96, 52.85, -70.78)
CIE-LCHlch(35.96, 88.34, 306.75°)
OKLaboklab(47.14% 0.0617 -0.2036)
OKLCHoklch(47.14% 0.213 286.8)
XYZxyz(16.1270, 8.9865, 56.1318)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35C9 #A3C935
analogous
#3559C9 #5B35C9 #A535C9
triadic
#5B35C9 #C95B35 #35C95B
tetradic
#5B35C9 #C93559 #A3C935 #35C9A5
square
#5B35C9 #C93559 #A3C935 #35C9A5
split-complementary
#5B35C9 #C9A535 #59C935
monochromatic
#2F1B68 #452899 #5B35C9 #8265D6 #A995E3

Accessibility & contrast

On white

7.51
#5B35C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5B35C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35C9
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35C9#FFFFFF#000000##FFFFFF
##5B35C91.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CD
Deuteranopia (green-blind)
#0050C6
Tritanopia (blue-blind)
#2B5E7C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b35c9;
/* rgb */ color: rgb(91, 53, 201);
/* oklch */ color: oklch(47.1% 0.213 286.8);
Tailwind
colors: {
  custom: {
    50: '#9570db',
    500: '#5b35c9',
    950: '#000000',
  },
}
SCSS
$custom: #5b35c9;
$custom-light: #9570db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35c9",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 201
  },
  "hsl": {
    "h": 255.405,
    "s": 58.268,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47138,
    "c": 0.21278,
    "h": 286.8
  },
  "luminance": 0.08987
}

Semantic roles & 50–950 ramp

primary
#5B35C9
secondary
#BDCE8B
accent
#E146BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B35C9

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

Preview Lab → · Contrast checker → · Palette generator →

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