#5B35D1#5B35D1

#5B35D1 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.9% C 0.222 H 285.6°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5B35D1
RGBrgb(91, 53, 209)
HSLhsl(255, 63%, 51%)
HSVhsv(255, 75%, 82%)
CMYKcmyk(56.5%, 74.6%, 0%, 18%)
CIE-LABlab(36.69, 55.10, -74.22)
CIE-LCHlch(36.69, 92.44, 306.59°)
OKLaboklab(47.88% 0.0597 -0.2137)
OKLCHoklch(47.88% 0.222 285.6)
XYZxyz(17.0926, 9.3728, 61.2177)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35D1 #ABD135
analogous
#355DD1 #5B35D1 #A935D1
triadic
#5B35D1 #D15B35 #35D15B
tetradic
#5B35D1 #D1355D #ABD135 #35D1A9
square
#5B35D1 #D1355D #ABD135 #35D1A9
split-complementary
#5B35D1 #D1A935 #5DD135
monochromatic
#2F1A72 #4425A4 #5B35D1 #8367DC #AC99E8

Accessibility & contrast

On white

7.30
#5B35D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5B35D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35D1
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35D1#FFFFFF#000000##FFFFFF
##5B35D11.007.302.877.30
#FFFFFF7.301.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD5
Deuteranopia (green-blind)
#0052CE
Tritanopia (blue-blind)
#206181
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b35d1;
/* rgb */ color: rgb(91, 53, 209);
/* oklch */ color: oklch(47.9% 0.222 285.6);
Tailwind
colors: {
  custom: {
    50: '#9671e0',
    500: '#5b35d1',
    950: '#000000',
  },
}
SCSS
$custom: #5b35d1;
$custom-light: #9671e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35d1",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 209
  },
  "hsl": {
    "h": 254.615,
    "s": 62.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47878,
    "c": 0.22189,
    "h": 285.6
  },
  "luminance": 0.09374
}

Semantic roles & 50–950 ramp

primary
#5B35D1
secondary
#C3D38F
accent
#E642BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B35D1

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

Preview Lab → · Contrast checker → · Palette generator →

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