#5B35CB#5B35CB

#5B35CB is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.215 H 286.5°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5B35CB
RGBrgb(91, 53, 203)
HSLhsl(255, 59%, 50%)
HSVhsv(255, 74%, 80%)
CMYKcmyk(55.2%, 73.9%, 0%, 20.4%)
CIE-LABlab(36.14, 53.41, -71.65)
CIE-LCHlch(36.14, 89.37, 306.70°)
OKLaboklab(47.32% 0.0612 -0.2062)
OKLCHoklch(47.32% 0.215 286.5)
XYZxyz(16.3638, 9.0812, 57.3789)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35CB #A5CB35
analogous
#355ACB #5B35CB #A635CB
triadic
#5B35CB #CB5B35 #35CB5B
tetradic
#5B35CB #CB355A #A5CB35 #35CBA6
square
#5B35CB #CB355A #A5CB35 #35CBA6
split-complementary
#5B35CB #CBA635 #5ACB35
monochromatic
#2F1B6A #45289B #5B35CB #8366D8 #AA96E4

Accessibility & contrast

On white

7.46
#5B35CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5B35CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35CB
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35CB#FFFFFF#000000##FFFFFF
##5B35CB1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CF
Deuteranopia (green-blind)
#0051C8
Tritanopia (blue-blind)
#295E7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b35cb;
/* rgb */ color: rgb(91, 53, 203);
/* oklch */ color: oklch(47.3% 0.215 286.5);
Tailwind
colors: {
  custom: {
    50: '#9570dc',
    500: '#5b35cb',
    950: '#000000',
  },
}
SCSS
$custom: #5b35cb;
$custom-light: #9570dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35cb",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 203
  },
  "hsl": {
    "h": 255.2,
    "s": 59.055,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47322,
    "c": 0.21508,
    "h": 286.5
  },
  "luminance": 0.09082
}

Semantic roles & 50–950 ramp

primary
#5B35CB
secondary
#BECF8C
accent
#E246BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B35CB

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

Preview Lab → · Contrast checker → · Palette generator →

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