#5D35C1#5D35C1

#5D35C1 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.203 H 289.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5D35C1
RGBrgb(93, 53, 193)
HSLhsl(257, 57%, 48%)
HSVhsv(257, 73%, 76%)
CMYKcmyk(51.8%, 72.5%, 0%, 24.3%)
CIE-LABlab(35.45, 50.90, -66.94)
CIE-LCHlch(35.45, 84.09, 307.25°)
OKLaboklab(46.61% 0.0664 -0.1923)
OKLCHoklch(46.61% 0.203 289)
XYZxyz(15.4101, 8.7229, 51.3134)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35C1 #99C135
analogous
#3553C1 #5D35C1 #A335C1
triadic
#5D35C1 #C15D35 #35C15D
tetradic
#5D35C1 #C13553 #99C135 #35C1A3
square
#5D35C1 #C13553 #99C135 #35C1A3
split-complementary
#5D35C1 #C1A335 #53C135
monochromatic
#2F1B61 #462891 #5D35C1 #8160D3 #A790E0

Accessibility & contrast

On white

7.65
#5D35C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5D35C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35C1
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35C1#FFFFFF#000000##FFFFFF
##5D35C11.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C5
Deuteranopia (green-blind)
#0050BE
Tritanopia (blue-blind)
#385A78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d35c1;
/* rgb */ color: rgb(93, 53, 193);
/* oklch */ color: oklch(46.6% 0.203 289.0);
Tailwind
colors: {
  custom: {
    50: '#9570d5',
    500: '#5d35c1',
    950: '#000000',
  },
}
SCSS
$custom: #5d35c1;
$custom-light: #9570d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35c1",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 193
  },
  "hsl": {
    "h": 257.143,
    "s": 56.911,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46605,
    "c": 0.20347,
    "h": 289
  },
  "luminance": 0.08724
}

Semantic roles & 50–950 ramp

primary
#5D35C1
secondary
#B8CB87
accent
#E048B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D35C1

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

Preview Lab → · Contrast checker → · Palette generator →

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