#5B35C4#5B35C4

#5B35C4 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.207 H 287.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5B35C4
RGBrgb(91, 53, 196)
HSLhsl(256, 57%, 49%)
HSVhsv(256, 73%, 77%)
CMYKcmyk(53.6%, 73%, 0%, 23.1%)
CIE-LABlab(35.51, 51.44, -68.60)
CIE-LCHlch(35.51, 85.74, 306.86°)
OKLaboklab(46.68% 0.0628 -0.1973)
OKLCHoklch(46.68% 0.207 287.7)
XYZxyz(15.5483, 8.7551, 53.0845)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35C4 #9EC435
analogous
#3557C4 #5B35C4 #A335C4
triadic
#5B35C4 #C45B35 #35C45B
tetradic
#5B35C4 #C43557 #9EC435 #35C4A3
square
#5B35C4 #C43557 #9EC435 #35C4A3
split-complementary
#5B35C4 #C4A335 #57C435
monochromatic
#2E1B64 #452894 #5B35C4 #8062D4 #A792E1

Accessibility & contrast

On white

7.63
#5B35C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5B35C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35C4
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35C4#FFFFFF#000000##FFFFFF
##5B35C41.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C8
Deuteranopia (green-blind)
#0050C1
Tritanopia (blue-blind)
#305C79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b35c4;
/* rgb */ color: rgb(91, 53, 196);
/* oklch */ color: oklch(46.7% 0.207 287.7);
Tailwind
colors: {
  custom: {
    50: '#9470d7',
    500: '#5b35c4',
    950: '#000000',
  },
}
SCSS
$custom: #5b35c4;
$custom-light: #9470d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35c4",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 196
  },
  "hsl": {
    "h": 255.944,
    "s": 57.43,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46683,
    "c": 0.20703,
    "h": 287.7
  },
  "luminance": 0.08756
}

Semantic roles & 50–950 ramp

primary
#5B35C4
secondary
#BACC88
accent
#E147B8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B35C4

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

Preview Lab → · Contrast checker → · Palette generator →

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