#5B35C7#5B35C7

#5B35C7 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.210 H 287.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5B35C7
RGBrgb(91, 53, 199)
HSLhsl(256, 58%, 49%)
HSVhsv(256, 73%, 78%)
CMYKcmyk(54.3%, 73.4%, 0%, 22%)
CIE-LABlab(35.78, 52.28, -69.91)
CIE-LCHlch(35.78, 87.30, 306.79°)
OKLaboklab(46.96% 0.0621 -0.2011)
OKLCHoklch(46.96% 0.21 287.2)
XYZxyz(15.8932, 8.8930, 54.9008)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35C7 #A1C735
analogous
#3558C7 #5B35C7 #A435C7
triadic
#5B35C7 #C75B35 #35C75B
tetradic
#5B35C7 #C73558 #A1C735 #35C7A4
square
#5B35C7 #C73558 #A1C735 #35C7A4
split-complementary
#5B35C7 #C7A435 #58C735
monochromatic
#2F1B66 #452897 #5B35C7 #8164D6 #A894E2

Accessibility & contrast

On white

7.56
#5B35C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5B35C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35C7
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35C7#FFFFFF#000000##FFFFFF
##5B35C71.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CB
Deuteranopia (green-blind)
#0050C4
Tritanopia (blue-blind)
#2D5D7B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b35c7;
/* rgb */ color: rgb(91, 53, 199);
/* oklch */ color: oklch(47.0% 0.210 287.2);
Tailwind
colors: {
  custom: {
    50: '#9470d9',
    500: '#5b35c7',
    950: '#000000',
  },
}
SCSS
$custom: #5b35c7;
$custom-light: #9470d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35c7",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 199
  },
  "hsl": {
    "h": 255.616,
    "s": 57.937,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46955,
    "c": 0.21049,
    "h": 287.2
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#5B35C7
secondary
#BCCE8A
accent
#E147B9
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B35C7

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

Preview Lab → · Contrast checker → · Palette generator →

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