#5B35D2#5B35D2

#5B35D2 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.223 H 285.5°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5B35D2
RGBrgb(91, 53, 210)
HSLhsl(255, 64%, 52%)
HSVhsv(255, 75%, 82%)
CMYKcmyk(56.7%, 74.8%, 0%, 17.6%)
CIE-LABlab(36.79, 55.38, -74.65)
CIE-LCHlch(36.79, 92.95, 306.57°)
OKLaboklab(47.97% 0.0595 -0.215)
OKLCHoklch(47.97% 0.223 285.5)
XYZxyz(17.2168, 9.4225, 61.8718)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35D2 #ACD235
analogous
#355ED2 #5B35D2 #AA35D2
triadic
#5B35D2 #D25B35 #35D25B
tetradic
#5B35D2 #D2355E #ACD235 #35D2AA
square
#5B35D2 #D2355E #ACD235 #35D2AA
split-complementary
#5B35D2 #D2AA35 #5ED235
monochromatic
#2F1A73 #4425A5 #5B35D2 #8467DD #AC99E8

Accessibility & contrast

On white

7.28
#5B35D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5B35D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35D2
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35D2#FFFFFF#000000##FFFFFF
##5B35D21.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD6
Deuteranopia (green-blind)
#0052CF
Tritanopia (blue-blind)
#1F6181
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b35d2;
/* rgb */ color: rgb(91, 53, 210);
/* oklch */ color: oklch(48.0% 0.223 285.5);
Tailwind
colors: {
  custom: {
    50: '#9671e1',
    500: '#5b35d2',
    950: '#000000',
  },
}
SCSS
$custom: #5b35d2;
$custom-light: #9671e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35d2",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 210
  },
  "hsl": {
    "h": 254.522,
    "s": 63.563,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47971,
    "c": 0.22303,
    "h": 285.5
  },
  "luminance": 0.09423
}

Semantic roles & 50–950 ramp

primary
#5B35D2
secondary
#C3D48F
accent
#E741BF
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0815
muted
#7F7B84

Preview Lab

Preview with #5B35D2

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

Preview Lab → · Contrast checker → · Palette generator →

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