#5B35BD#5B35BD

#5B35BD is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.199 H 288.9°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5B35BD
RGBrgb(91, 53, 189)
HSLhsl(257, 56%, 47%)
HSVhsv(257, 72%, 74%)
CMYKcmyk(51.9%, 72%, 0%, 25.9%)
CIE-LABlab(34.89, 49.46, -65.51)
CIE-LCHlch(34.89, 82.08, 307.05°)
OKLaboklab(46.06% 0.0644 -0.1882)
OKLCHoklch(46.06% 0.199 288.9)
XYZxyz(14.7701, 8.4438, 48.9858)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35BD #97BD35
analogous
#3553BD #5B35BD #9F35BD
triadic
#5B35BD #BD5B35 #35BD5B
tetradic
#5B35BD #BD3553 #97BD35 #35BD9F
square
#5B35BD #BD3553 #97BD35 #35BD9F
split-complementary
#5B35BD #BD9F35 #53BD35
monochromatic
#2D1A5D #44288D #5B35BD #7E5DD2 #A48DDF

Accessibility & contrast

On white

7.81
#5B35BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5B35BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35BD
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35BD#FFFFFF#000000##FFFFFF
##5B35BD1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#375976
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b35bd;
/* rgb */ color: rgb(91, 53, 189);
/* oklch */ color: oklch(46.1% 0.199 288.9);
Tailwind
colors: {
  custom: {
    50: '#9370d2',
    500: '#5b35bd',
    950: '#000000',
  },
}
SCSS
$custom: #5b35bd;
$custom-light: #9370d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35bd",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 189
  },
  "hsl": {
    "h": 256.765,
    "s": 56.198,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46056,
    "c": 0.1989,
    "h": 288.9
  },
  "luminance": 0.08444
}

Semantic roles & 50–950 ramp

primary
#5B35BD
secondary
#B6CA84
accent
#DF48B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B35BD

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

Preview Lab → · Contrast checker → · Palette generator →

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