#5B35BA#5B35BA

#5B35BA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.195 H 289.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5B35BA
RGBrgb(91, 53, 186)
HSLhsl(257, 56%, 47%)
HSVhsv(257, 72%, 73%)
CMYKcmyk(51.1%, 71.5%, 0%, 27.1%)
CIE-LABlab(34.63, 48.61, -64.17)
CIE-LCHlch(34.63, 80.50, 307.15°)
OKLaboklab(45.79% 0.065 -0.1843)
OKLCHoklch(45.79% 0.195 289.4)
XYZxyz(14.4478, 8.3149, 47.2885)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35BA #94BA35
analogous
#3551BA #5B35BA #9E35BA
triadic
#5B35BA #BA5B35 #35BA5B
tetradic
#5B35BA #BA3551 #94BA35 #35BA9E
square
#5B35BA #BA3551 #94BA35 #35BA9E
split-complementary
#5B35BA #BA9E35 #51BA35
monochromatic
#2C1A5B #44278A #5B35BA #7D5CD0 #A38BDE

Accessibility & contrast

On white

7.89
#5B35BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5B35BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35BA
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35BA#FFFFFF#000000##FFFFFF
##5B35BA1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#395874
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b35ba;
/* rgb */ color: rgb(91, 53, 186);
/* oklch */ color: oklch(45.8% 0.195 289.4);
Tailwind
colors: {
  custom: {
    50: '#9270d0',
    500: '#5b35ba',
    950: '#000000',
  },
}
SCSS
$custom: #5b35ba;
$custom-light: #9270d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35ba",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 186
  },
  "hsl": {
    "h": 257.143,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45792,
    "c": 0.19539,
    "h": 289.4
  },
  "luminance": 0.08316
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B35BA

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

Preview Lab → · Contrast checker → · Palette generator →

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