#5B35B7#5B35B7

#5B35B7 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.192 H 290.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5B35B7
RGBrgb(91, 53, 183)
HSLhsl(258, 55%, 46%)
HSVhsv(258, 71%, 72%)
CMYKcmyk(50.3%, 71%, 0%, 28.2%)
CIE-LABlab(34.37, 47.76, -62.81)
CIE-LCHlch(34.37, 78.91, 307.25°)
OKLaboklab(45.53% 0.0656 -0.1803)
OKLCHoklch(45.53% 0.192 290)
XYZxyz(14.1323, 8.1887, 45.6265)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35B7 #91B735
analogous
#3550B7 #5B35B7 #9C35B7
triadic
#5B35B7 #B75B35 #35B75B
tetradic
#5B35B7 #B73550 #91B735 #35B79C
square
#5B35B7 #B73550 #91B735 #35B79C
split-complementary
#5B35B7 #B79C35 #50B735
monochromatic
#2C1A58 #432788 #5B35B7 #7C5ACF #A289DD

Accessibility & contrast

On white

7.96
#5B35B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5B35B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35B7
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35B7#FFFFFF#000000##FFFFFF
##5B35B71.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#3B5772
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b35b7;
/* rgb */ color: rgb(91, 53, 183);
/* oklch */ color: oklch(45.5% 0.192 290.0);
Tailwind
colors: {
  custom: {
    50: '#9270ce',
    500: '#5b35b7',
    950: '#000000',
  },
}
SCSS
$custom: #5b35b7;
$custom-light: #9270ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35b7",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 183
  },
  "hsl": {
    "h": 257.538,
    "s": 55.085,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45529,
    "c": 0.19186,
    "h": 290
  },
  "luminance": 0.08189
}

Semantic roles & 50–950 ramp

primary
#5B35B7
secondary
#B2C781
accent
#DE49B3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B35B7

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

Preview Lab → · Contrast checker → · Palette generator →

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