#5B35BF#5B35BF

#5B35BF is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.2% C 0.201 H 288.5°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5B35BF
RGBrgb(91, 53, 191)
HSLhsl(257, 57%, 48%)
HSVhsv(257, 72%, 75%)
CMYKcmyk(52.4%, 72.3%, 0%, 25.1%)
CIE-LABlab(35.07, 50.02, -66.40)
CIE-LCHlch(35.07, 83.13, 306.99°)
OKLaboklab(46.23% 0.064 -0.1908)
OKLCHoklch(46.23% 0.201 288.5)
XYZxyz(14.9887, 8.5312, 50.1370)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35BF #99BF35
analogous
#3554BF #5B35BF #A035BF
triadic
#5B35BF #BF5B35 #35BF5B
tetradic
#5B35BF #BF3554 #99BF35 #35BFA0
square
#5B35BF #BF3554 #99BF35 #35BFA0
split-complementary
#5B35BF #BFA035 #54BF35
monochromatic
#2D1A5F #44288F #5B35BF #7F5FD3 #A58FE0

Accessibility & contrast

On white

7.76
#5B35BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5B35BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35BF
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35BF#FFFFFF#000000##FFFFFF
##5B35BF1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#004FBC
Tritanopia (blue-blind)
#355A77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b35bf;
/* rgb */ color: rgb(91, 53, 191);
/* oklch */ color: oklch(46.2% 0.201 288.5);
Tailwind
colors: {
  custom: {
    50: '#9370d3',
    500: '#5b35bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b35bf;
$custom-light: #9370d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35bf",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 191
  },
  "hsl": {
    "h": 256.522,
    "s": 56.557,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46234,
    "c": 0.20123,
    "h": 288.5
  },
  "luminance": 0.08532
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B35BF

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

Preview Lab → · Contrast checker → · Palette generator →

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