#5B35BE#5B35BE

#5B35BE is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.1% C 0.200 H 288.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5B35BE
RGBrgb(91, 53, 190)
HSLhsl(257, 56%, 48%)
HSVhsv(257, 72%, 75%)
CMYKcmyk(52.1%, 72.1%, 0%, 25.5%)
CIE-LABlab(34.98, 49.74, -65.95)
CIE-LCHlch(34.98, 82.61, 307.02°)
OKLaboklab(46.15% 0.0642 -0.1895)
OKLCHoklch(46.15% 0.2 288.7)
XYZxyz(14.8790, 8.4874, 49.5594)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35BE #98BE35
analogous
#3554BE #5B35BE #9F35BE
triadic
#5B35BE #BE5B35 #35BE5B
tetradic
#5B35BE #BE3554 #98BE35 #35BE9F
square
#5B35BE #BE3554 #98BE35 #35BE9F
split-complementary
#5B35BE #BE9F35 #54BE35
monochromatic
#2D1A5E #44288E #5B35BE #7E5ED2 #A58EDF

Accessibility & contrast

On white

7.78
#5B35BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5B35BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35BE
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35BE#FFFFFF#000000##FFFFFF
##5B35BE1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#004FBB
Tritanopia (blue-blind)
#365976
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b35be;
/* rgb */ color: rgb(91, 53, 190);
/* oklch */ color: oklch(46.1% 0.200 288.7);
Tailwind
colors: {
  custom: {
    50: '#9370d3',
    500: '#5b35be',
    950: '#000000',
  },
}
SCSS
$custom: #5b35be;
$custom-light: #9370d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35be",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 190
  },
  "hsl": {
    "h": 256.642,
    "s": 56.379,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46145,
    "c": 0.20007,
    "h": 288.7
  },
  "luminance": 0.08488
}

Semantic roles & 50–950 ramp

primary
#5B35BE
secondary
#B7CA85
accent
#E048B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B35BE

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

Preview Lab → · Contrast checker → · Palette generator →

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