#5D35B4#5D35B4

#5D35B4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.188 H 291.5°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5D35B4
RGBrgb(93, 53, 180)
HSLhsl(259, 55%, 46%)
HSVhsv(259, 71%, 71%)
CMYKcmyk(48.3%, 70.6%, 0%, 29.4%)
CIE-LABlab(34.33, 47.26, -61.10)
CIE-LCHlch(34.33, 77.24, 307.72°)
OKLaboklab(45.47% 0.0691 -0.1752)
OKLCHoklch(45.47% 0.188 291.5)
XYZxyz(14.0232, 8.1681, 44.0089)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35B4 #8CB435
analogous
#354CB4 #5D35B4 #9C35B4
triadic
#5D35B4 #B45D35 #35B45D
tetradic
#5D35B4 #B4354C #8CB435 #35B49C
square
#5D35B4 #B4354C #8CB435 #35B49C
split-complementary
#5D35B4 #B49C35 #4CB435
monochromatic
#2C1955 #452785 #5D35B4 #7D58CE #A288DC

Accessibility & contrast

On white

7.97
#5D35B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5D35B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35B4
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35B4#FFFFFF#000000##FFFFFF
##5D35B41.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#415571
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d35b4;
/* rgb */ color: rgb(93, 53, 180);
/* oklch */ color: oklch(45.5% 0.188 291.5);
Tailwind
colors: {
  custom: {
    50: '#9370cb',
    500: '#5d35b4',
    950: '#000000',
  },
}
SCSS
$custom: #5d35b4;
$custom-light: #9370cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35b4",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 180
  },
  "hsl": {
    "h": 258.898,
    "s": 54.506,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4547,
    "c": 0.18832,
    "h": 291.5
  },
  "luminance": 0.08169
}

Semantic roles & 50–950 ramp

primary
#5D35B4
secondary
#AFC67F
accent
#DE4AAF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D35B4

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

Preview Lab → · Contrast checker → · Palette generator →

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