#5B35C8#5B35C8

#5B35C8 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.212 H 287.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5B35C8
RGBrgb(91, 53, 200)
HSLhsl(256, 58%, 50%)
HSVhsv(256, 74%, 78%)
CMYKcmyk(54.5%, 73.5%, 0%, 21.6%)
CIE-LABlab(35.87, 52.57, -70.35)
CIE-LCHlch(35.87, 87.82, 306.77°)
OKLaboklab(47.05% 0.0619 -0.2024)
OKLCHoklch(47.05% 0.212 287)
XYZxyz(16.0097, 8.9396, 55.5143)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35C8 #A2C835
analogous
#3559C8 #5B35C8 #A535C8
triadic
#5B35C8 #C85B35 #35C85B
tetradic
#5B35C8 #C83559 #A2C835 #35C8A5
square
#5B35C8 #C83559 #A2C835 #35C8A5
split-complementary
#5B35C8 #C8A535 #59C835
monochromatic
#2F1B67 #452898 #5B35C8 #8264D6 #A995E3

Accessibility & contrast

On white

7.53
#5B35C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5B35C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35C8
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35C8#FFFFFF#000000##FFFFFF
##5B35C81.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#0050C5
Tritanopia (blue-blind)
#2C5D7C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b35c8;
/* rgb */ color: rgb(91, 53, 200);
/* oklch */ color: oklch(47.0% 0.212 287.0);
Tailwind
colors: {
  custom: {
    50: '#9570da',
    500: '#5b35c8',
    950: '#000000',
  },
}
SCSS
$custom: #5b35c8;
$custom-light: #9570da;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35c8",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 200
  },
  "hsl": {
    "h": 255.51,
    "s": 58.103,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47047,
    "c": 0.21163,
    "h": 287
  },
  "luminance": 0.0894
}

Semantic roles & 50–950 ramp

primary
#5B35C8
secondary
#BDCE8B
accent
#E146B9
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B35C8

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

Preview Lab → · Contrast checker → · Palette generator →

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