#5D35C2#5D35C2

#5D35C2 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.205 H 288.9°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5D35C2
RGBrgb(93, 53, 194)
HSLhsl(257, 57%, 48%)
HSVhsv(257, 73%, 76%)
CMYKcmyk(52.1%, 72.7%, 0%, 23.9%)
CIE-LABlab(35.53, 51.18, -67.38)
CIE-LCHlch(35.53, 84.61, 307.22°)
OKLaboklab(46.69% 0.0662 -0.1936)
OKLCHoklch(46.69% 0.205 288.9)
XYZxyz(15.5221, 8.7677, 51.9029)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35C2 #9AC235
analogous
#3554C2 #5D35C2 #A335C2
triadic
#5D35C2 #C25D35 #35C25D
tetradic
#5D35C2 #C23554 #9AC235 #35C2A3
square
#5D35C2 #C23554 #9AC235 #35C2A3
split-complementary
#5D35C2 #C2A335 #54C235
monochromatic
#2F1B62 #462892 #5D35C2 #8160D4 #A791E1

Accessibility & contrast

On white

7.63
#5D35C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5D35C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35C2
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35C2#FFFFFF#000000##FFFFFF
##5D35C21.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#375B78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5d35c2;
/* rgb */ color: rgb(93, 53, 194);
/* oklch */ color: oklch(46.7% 0.205 288.9);
Tailwind
colors: {
  custom: {
    50: '#9570d6',
    500: '#5d35c2',
    950: '#000000',
  },
}
SCSS
$custom: #5d35c2;
$custom-light: #9570d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35c2",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 194
  },
  "hsl": {
    "h": 257.021,
    "s": 57.085,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46694,
    "c": 0.20463,
    "h": 288.9
  },
  "luminance": 0.08768
}

Semantic roles & 50–950 ramp

primary
#5D35C2
secondary
#B8CC87
accent
#E047B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D35C2

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

Preview Lab → · Contrast checker → · Palette generator →

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