#5B35CA#5B35CA

#5B35CA is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.214 H 286.7°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5B35CA
RGBrgb(91, 53, 202)
HSLhsl(255, 58%, 50%)
HSVhsv(255, 74%, 79%)
CMYKcmyk(55%, 73.8%, 0%, 20.8%)
CIE-LABlab(36.05, 53.13, -71.22)
CIE-LCHlch(36.05, 88.85, 306.72°)
OKLaboklab(47.23% 0.0614 -0.2049)
OKLCHoklch(47.23% 0.214 286.7)
XYZxyz(16.2450, 9.0337, 56.7534)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35CA #A4CA35
analogous
#355ACA #5B35CA #A535CA
triadic
#5B35CA #CA5B35 #35CA5B
tetradic
#5B35CA #CA355A #A4CA35 #35CAA5
square
#5B35CA #CA355A #A4CA35 #35CAA5
split-complementary
#5B35CA #CAA535 #5ACA35
monochromatic
#2F1C69 #45289A #5B35CA #8265D7 #AA96E3

Accessibility & contrast

On white

7.48
#5B35CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5B35CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35CA
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35CA#FFFFFF#000000##FFFFFF
##5B35CA1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#2A5E7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b35ca;
/* rgb */ color: rgb(91, 53, 202);
/* oklch */ color: oklch(47.2% 0.214 286.7);
Tailwind
colors: {
  custom: {
    50: '#9570db',
    500: '#5b35ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b35ca;
$custom-light: #9570db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35ca",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 202
  },
  "hsl": {
    "h": 255.302,
    "s": 58.431,
    "l": 50
  },
  "oklch": {
    "l": 0.4723,
    "c": 0.21393,
    "h": 286.7
  },
  "luminance": 0.09035
}

Semantic roles & 50–950 ramp

primary
#5B35CA
secondary
#BECF8C
accent
#E246BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B35CA

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

Preview Lab → · Contrast checker → · Palette generator →

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