#5B35CD#5B35CD

#5B35CD is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.217 H 286.2°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5B35CD
RGBrgb(91, 53, 205)
HSLhsl(255, 60%, 51%)
HSVhsv(255, 74%, 80%)
CMYKcmyk(55.6%, 74.1%, 0%, 19.6%)
CIE-LABlab(36.32, 53.97, -72.51)
CIE-LCHlch(36.32, 90.39, 306.66°)
OKLaboklab(47.51% 0.0607 -0.2087)
OKLCHoklch(47.51% 0.217 286.2)
XYZxyz(16.6036, 9.1772, 58.6422)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B35CD #A7CD35
analogous
#355BCD #5B35CD #A735CD
triadic
#5B35CD #CD5B35 #35CD5B
tetradic
#5B35CD #CD355B #A7CD35 #35CDA7
square
#5B35CD #CD355B #A7CD35 #35CDA7
split-complementary
#5B35CD #CDA735 #5BCD35
monochromatic
#2F1B6D #45279E #5B35CD #8366D9 #AB97E5

Accessibility & contrast

On white

7.41
#5B35CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5B35CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B35CD
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B35CD#FFFFFF#000000##FFFFFF
##5B35CD1.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#0051CA
Tritanopia (blue-blind)
#265F7F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b35cd;
/* rgb */ color: rgb(91, 53, 205);
/* oklch */ color: oklch(47.5% 0.217 286.2);
Tailwind
colors: {
  custom: {
    50: '#9570dd',
    500: '#5b35cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b35cd;
$custom-light: #9570dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b35cd",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 205
  },
  "hsl": {
    "h": 255,
    "s": 60.317,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47506,
    "c": 0.21736,
    "h": 286.2
  },
  "luminance": 0.09178
}

Semantic roles & 50–950 ramp

primary
#5B35CD
secondary
#C0D18D
accent
#E344BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B35CD

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

Preview Lab → · Contrast checker → · Palette generator →

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