#5D35B9#5D35B9

#5D35B9 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.194 H 290.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5D35B9
RGBrgb(93, 53, 185)
HSLhsl(258, 55%, 47%)
HSVhsv(258, 71%, 73%)
CMYKcmyk(49.7%, 71.4%, 0%, 27.5%)
CIE-LABlab(34.75, 48.66, -63.37)
CIE-LCHlch(34.75, 79.89, 307.52°)
OKLaboklab(45.9% 0.0681 -0.1818)
OKLCHoklch(45.9% 0.194 290.5)
XYZxyz(14.5418, 8.3756, 46.7400)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35B9 #91B935
analogous
#354FB9 #5D35B9 #9F35B9
triadic
#5D35B9 #B95D35 #35B95D
tetradic
#5D35B9 #B9354F #91B935 #35B99F
square
#5D35B9 #B9354F #91B935 #35B99F
split-complementary
#5D35B9 #B99F35 #4FB935
monochromatic
#2D1A5A #452789 #5D35B9 #7F5BD0 #A48BDE

Accessibility & contrast

On white

7.85
#5D35B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5D35B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35B9
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35B9#FFFFFF#000000##FFFFFF
##5D35B91.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#004FB6
Tritanopia (blue-blind)
#3E5773
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d35b9;
/* rgb */ color: rgb(93, 53, 185);
/* oklch */ color: oklch(45.9% 0.194 290.5);
Tailwind
colors: {
  custom: {
    50: '#9370cf',
    500: '#5d35b9',
    950: '#000000',
  },
}
SCSS
$custom: #5d35b9;
$custom-light: #9370cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35b9",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 185
  },
  "hsl": {
    "h": 258.182,
    "s": 55.462,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45901,
    "c": 0.19418,
    "h": 290.5
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#5D35B9
secondary
#B3C882
accent
#DF49B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5D35B9

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

Preview Lab → · Contrast checker → · Palette generator →

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