#5D35B5#5D35B5

#5D35B5 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.189 H 291.3°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5D35B5
RGBrgb(93, 53, 181)
HSLhsl(259, 55%, 46%)
HSVhsv(259, 71%, 71%)
CMYKcmyk(48.6%, 70.7%, 0%, 29%)
CIE-LABlab(34.41, 47.54, -61.55)
CIE-LCHlch(34.41, 77.77, 307.68°)
OKLaboklab(45.56% 0.0689 -0.1765)
OKLCHoklch(45.56% 0.189 291.3)
XYZxyz(14.1254, 8.2090, 44.5473)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35B5 #8DB535
analogous
#354DB5 #5D35B5 #9D35B5
triadic
#5D35B5 #B55D35 #35B55D
tetradic
#5D35B5 #B5354D #8DB535 #35B59D
square
#5D35B5 #B5354D #8DB535 #35B59D
split-complementary
#5D35B5 #B59D35 #4DB535
monochromatic
#2C1956 #452786 #5D35B5 #7E59CE #A288DC

Accessibility & contrast

On white

7.95
#5D35B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5D35B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35B5
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35B5#FFFFFF#000000##FFFFFF
##5D35B51.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d35b5;
/* rgb */ color: rgb(93, 53, 181);
/* oklch */ color: oklch(45.6% 0.189 291.3);
Tailwind
colors: {
  custom: {
    50: '#9370cc',
    500: '#5d35b5',
    950: '#000000',
  },
}
SCSS
$custom: #5d35b5;
$custom-light: #9370cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35b5",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 181
  },
  "hsl": {
    "h": 258.75,
    "s": 54.701,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45556,
    "c": 0.18949,
    "h": 291.3
  },
  "luminance": 0.0821
}

Semantic roles & 50–950 ramp

primary
#5D35B5
secondary
#B0C680
accent
#DE4AB0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D35B5

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

Preview Lab → · Contrast checker → · Palette generator →

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