#5B35BB#5B35BB

#5B35BB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.197 H 289.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5B35BB
RGBrgb(91, 53, 187)
HSLhsl(257, 56%, 47%)
HSVhsv(257, 72%, 73%)
CMYKcmyk(51.3%, 71.7%, 0%, 26.7%)
CIE-LABlab(34.72, 48.89, -64.61)
CIE-LCHlch(34.72, 81.03, 307.11°)
OKLaboklab(45.88% 0.0648 -0.1856)
OKLCHoklch(45.88% 0.197 289.2)
XYZxyz(14.5545, 8.3576, 47.8503)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35BB #95BB35
analogous
#3552BB #5B35BB #9E35BB
triadic
#5B35BB #BB5B35 #35BB5B
tetradic
#5B35BB #BB3552 #95BB35 #35BB9E
square
#5B35BB #BB3552 #95BB35 #35BB9E
split-complementary
#5B35BB #BB9E35 #52BB35
monochromatic
#2D1A5C #44278B #5B35BB #7D5CD1 #A38CDE

Accessibility & contrast

On white

7.86
#5B35BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5B35BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35BB
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35BB#FFFFFF#000000##FFFFFF
##5B35BB1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#385874
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b35bb;
/* rgb */ color: rgb(91, 53, 187);
/* oklch */ color: oklch(45.9% 0.197 289.2);
Tailwind
colors: {
  custom: {
    50: '#9370d1',
    500: '#5b35bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b35bb;
$custom-light: #9370d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35bb",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 187
  },
  "hsl": {
    "h": 257.015,
    "s": 55.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4588,
    "c": 0.19656,
    "h": 289.2
  },
  "luminance": 0.08358
}

Semantic roles & 50–950 ramp

primary
#5B35BB
secondary
#B5C983
accent
#DF49B4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B35BB

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

Preview Lab → · Contrast checker → · Palette generator →

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