#5D35CE#5D35CE

#5D35CE is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.218 H 286.9°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5D35CE
RGBrgb(93, 53, 206)
HSLhsl(256, 61%, 51%)
HSVhsv(256, 74%, 81%)
CMYKcmyk(54.9%, 74.3%, 0%, 19.2%)
CIE-LABlab(36.61, 54.53, -72.61)
CIE-LCHlch(36.61, 90.81, 306.91°)
OKLaboklab(47.78% 0.0634 -0.2089)
OKLCHoklch(47.78% 0.218 286.9)
XYZxyz(16.9246, 9.3287, 59.2894)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35CE #A6CE35
analogous
#3559CE #5D35CE #A935CE
triadic
#5D35CE #CE5D35 #35CE5D
tetradic
#5D35CE #CE3559 #A6CE35 #35CEA9
square
#5D35CE #CE3559 #A6CE35 #35CEA9
split-complementary
#5D35CE #CEA935 #59CE35
monochromatic
#301B6E #46279F #5D35CE #8466DA #AC98E6

Accessibility & contrast

On white

7.33
#5D35CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5D35CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35CE
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35CE#FFFFFF#000000##FFFFFF
##5D35CE1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD2
Deuteranopia (green-blind)
#0052CB
Tritanopia (blue-blind)
#2B5F7F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d35ce;
/* rgb */ color: rgb(93, 53, 206);
/* oklch */ color: oklch(47.8% 0.218 286.9);
Tailwind
colors: {
  custom: {
    50: '#9771de',
    500: '#5d35ce',
    950: '#000000',
  },
}
SCSS
$custom: #5d35ce;
$custom-light: #9771de;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35ce",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 206
  },
  "hsl": {
    "h": 255.686,
    "s": 60.956,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47782,
    "c": 0.21833,
    "h": 286.9
  },
  "luminance": 0.0933
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D35CE

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

Preview Lab → · Contrast checker → · Palette generator →

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