#5B35CF#5B35CF

#5B35CF is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.220 H 285.9°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5B35CF
RGBrgb(91, 53, 207)
HSLhsl(255, 62%, 51%)
HSVhsv(255, 74%, 81%)
CMYKcmyk(56%, 74.4%, 0%, 18.8%)
CIE-LABlab(36.51, 54.54, -73.37)
CIE-LCHlch(36.51, 91.42, 306.63°)
OKLaboklab(47.69% 0.0602 -0.2112)
OKLCHoklch(47.69% 0.22 285.9)
XYZxyz(16.8466, 9.2744, 59.9218)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35CF #A9CF35
analogous
#355CCF #5B35CF #A835CF
triadic
#5B35CF #CF5B35 #35CF5B
tetradic
#5B35CF #CF355C #A9CF35 #35CFA8
square
#5B35CF #CF355C #A9CF35 #35CFA8
split-complementary
#5B35CF #CFA835 #5CCF35
monochromatic
#2F1A6F #4426A1 #5B35CF #8366DB #AB98E7

Accessibility & contrast

On white

7.36
#5B35CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B35CF
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35CF#FFFFFF#000000##FFFFFF
##5B35CF1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#236080
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b35cf;
/* rgb */ color: rgb(91, 53, 207);
/* oklch */ color: oklch(47.7% 0.220 285.9);
Tailwind
colors: {
  custom: {
    50: '#9671df',
    500: '#5b35cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b35cf;
$custom-light: #9671df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35cf",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 207
  },
  "hsl": {
    "h": 254.805,
    "s": 61.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47692,
    "c": 0.21963,
    "h": 285.9
  },
  "luminance": 0.09275
}

Semantic roles & 50–950 ramp

primary
#5B35CF
secondary
#C1D28E
accent
#E543BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B35CF

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

Preview Lab → · Contrast checker → · Palette generator →

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