#5B35CC#5B35CC

#5B35CC is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.4% C 0.216 H 286.4°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5B35CC
RGBrgb(91, 53, 204)
HSLhsl(255, 60%, 50%)
HSVhsv(255, 74%, 80%)
CMYKcmyk(55.4%, 74%, 0%, 20%)
CIE-LABlab(36.23, 53.69, -72.08)
CIE-LCHlch(36.23, 89.88, 306.68°)
OKLaboklab(47.41% 0.0609 -0.2074)
OKLCHoklch(47.41% 0.216 286.4)
XYZxyz(16.4833, 9.1291, 58.0086)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35CC #A6CC35
analogous
#355BCC #5B35CC #A635CC
triadic
#5B35CC #CC5B35 #35CC5B
tetradic
#5B35CC #CC355B #A6CC35 #35CCA6
square
#5B35CC #CC355B #A6CC35 #35CCA6
split-complementary
#5B35CC #CCA635 #5BCC35
monochromatic
#2F1B6B #45279C #5B35CC #8366D8 #AA97E5

Accessibility & contrast

On white

7.43
#5B35CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5B35CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35CC
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35CC#FFFFFF#000000##FFFFFF
##5B35CC1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#275F7E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b35cc;
/* rgb */ color: rgb(91, 53, 204);
/* oklch */ color: oklch(47.4% 0.216 286.4);
Tailwind
colors: {
  custom: {
    50: '#9570dd',
    500: '#5b35cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b35cc;
$custom-light: #9570dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35cc",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 204
  },
  "hsl": {
    "h": 255.099,
    "s": 59.684,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47414,
    "c": 0.21622,
    "h": 286.4
  },
  "luminance": 0.0913
}

Semantic roles & 50–950 ramp

primary
#5B35CC
secondary
#BFD08D
accent
#E345BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B35CC

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

Preview Lab → · Contrast checker → · Palette generator →

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