#5B35C2#5B35C2

#5B35C2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.5% C 0.205 H 288.0°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5B35C2
RGBrgb(91, 53, 194)
HSLhsl(256, 57%, 48%)
HSVhsv(256, 73%, 76%)
CMYKcmyk(53.1%, 72.7%, 0%, 23.9%)
CIE-LABlab(35.33, 50.87, -67.72)
CIE-LCHlch(35.33, 84.70, 306.91°)
OKLaboklab(46.5% 0.0633 -0.1947)
OKLCHoklch(46.5% 0.205 288)
XYZxyz(15.3222, 8.6646, 51.8936)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35C2 #9CC235
analogous
#3555C2 #5B35C2 #A135C2
triadic
#5B35C2 #C25B35 #35C25B
tetradic
#5B35C2 #C23555 #9CC235 #35C2A1
square
#5B35C2 #C23555 #9CC235 #35C2A1
split-complementary
#5B35C2 #C2A135 #55C235
monochromatic
#2E1B62 #442892 #5B35C2 #8060D4 #A691E1

Accessibility & contrast

On white

7.68
#5B35C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5B35C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35C2
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35C2#FFFFFF#000000##FFFFFF
##5B35C21.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#004FBF
Tritanopia (blue-blind)
#325B78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b35c2;
/* rgb */ color: rgb(91, 53, 194);
/* oklch */ color: oklch(46.5% 0.205 288.0);
Tailwind
colors: {
  custom: {
    50: '#9470d6',
    500: '#5b35c2',
    950: '#000000',
  },
}
SCSS
$custom: #5b35c2;
$custom-light: #9470d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35c2",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 194
  },
  "hsl": {
    "h": 256.17,
    "s": 57.085,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46503,
    "c": 0.20472,
    "h": 288
  },
  "luminance": 0.08665
}

Semantic roles & 50–950 ramp

primary
#5B35C2
secondary
#B9CC87
accent
#E047B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B35C2

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

Preview Lab → · Contrast checker → · Palette generator →

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