#5B35CE#5B35CE

#5B35CE is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.6% C 0.218 H 286.1°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5B35CE
RGBrgb(91, 53, 206)
HSLhsl(255, 61%, 51%)
HSVhsv(255, 74%, 81%)
CMYKcmyk(55.8%, 74.3%, 0%, 19.2%)
CIE-LABlab(36.42, 54.26, -72.94)
CIE-LCHlch(36.42, 90.91, 306.64°)
OKLaboklab(47.6% 0.0605 -0.21)
OKLCHoklch(47.6% 0.218 286.1)
XYZxyz(16.7247, 9.2256, 59.2800)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35CE #A8CE35
analogous
#355BCE #5B35CE #A735CE
triadic
#5B35CE #CE5B35 #35CE5B
tetradic
#5B35CE #CE355B #A8CE35 #35CEA7
square
#5B35CE #CE355B #A8CE35 #35CEA7
split-complementary
#5B35CE #CEA735 #5BCE35
monochromatic
#2F1B6E #45279F #5B35CE #8366DA #AB98E6

Accessibility & contrast

On white

7.38
#5B35CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B35CE
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35CE#FFFFFF#000000##FFFFFF
##5B35CE1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD2
Deuteranopia (green-blind)
#0051CB
Tritanopia (blue-blind)
#25607F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b35ce;
/* rgb */ color: rgb(91, 53, 206);
/* oklch */ color: oklch(47.6% 0.218 286.1);
Tailwind
colors: {
  custom: {
    50: '#9570de',
    500: '#5b35ce',
    950: '#000000',
  },
}
SCSS
$custom: #5b35ce;
$custom-light: #9570de;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35ce",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 206
  },
  "hsl": {
    "h": 254.902,
    "s": 60.956,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47599,
    "c": 0.21849,
    "h": 286.1
  },
  "luminance": 0.09227
}

Semantic roles & 50–950 ramp

primary
#5B35CE
secondary
#C0D18D
accent
#E444BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B35CE

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

Preview Lab → · Contrast checker → · Palette generator →

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