#5D35A5#5D35A5

#5D35A5 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.2% C 0.170 H 294.8°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#5D35A5
RGBrgb(93, 53, 165)
HSLhsl(261, 51%, 43%)
HSVhsv(261, 68%, 65%)
CMYKcmyk(43.6%, 67.9%, 0%, 35.3%)
CIE-LABlab(33.11, 43.09, -54.12)
CIE-LCHlch(33.11, 69.18, 308.53°)
OKLaboklab(44.22% 0.0716 -0.1547)
OKLCHoklch(44.22% 0.17 294.8)
XYZxyz(12.5770, 7.5897, 36.3923)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35A5 #7DA535
analogous
#3545A5 #5D35A5 #9535A5
triadic
#5D35A5 #A55D35 #35A55D
tetradic
#5D35A5 #A53545 #7DA535 #35A595
square
#5D35A5 #A53545 #7DA535 #35A595
split-complementary
#5D35A5 #A59535 #45A535
monochromatic
#291748 #432677 #5D35A5 #7B50C7 #9E7FD6

Accessibility & contrast

On white

8.34
#5D35A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5D35A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35A5
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35A5#FFFFFF#000000##FFFFFF
##5D35A51.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#495068
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d35a5;
/* rgb */ color: rgb(93, 53, 165);
/* oklch */ color: oklch(44.2% 0.170 294.8);
Tailwind
colors: {
  custom: {
    50: '#916fc1',
    500: '#5d35a5',
    950: '#000000',
  },
}
SCSS
$custom: #5d35a5;
$custom-light: #916fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35a5",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 165
  },
  "hsl": {
    "h": 261.429,
    "s": 51.376,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44221,
    "c": 0.17046,
    "h": 294.8
  },
  "luminance": 0.0759
}

Semantic roles & 50–950 ramp

primary
#5D35A5
secondary
#A5BF77
accent
#DB4DA8
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D35A5

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

Preview Lab → · Contrast checker → · Palette generator →

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