#5D35A9#5D35A9

#5D35A9 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.5% C 0.175 H 293.9°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#5D35A9
RGBrgb(93, 53, 169)
HSLhsl(261, 52%, 44%)
HSVhsv(261, 69%, 66%)
CMYKcmyk(45%, 68.6%, 0%, 33.7%)
CIE-LABlab(33.43, 44.20, -56.01)
CIE-LCHlch(33.43, 71.35, 308.28°)
OKLaboklab(44.55% 0.071 -0.1602)
OKLCHoklch(44.55% 0.175 293.9)
XYZxyz(12.9468, 7.7376, 38.3398)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D35A9 #81A935
analogous
#3547A9 #5D35A9 #9735A9
triadic
#5D35A9 #A95D35 #35A95D
tetradic
#5D35A9 #A93547 #81A935 #35A997
square
#5D35A9 #A93547 #81A935 #35A997
split-complementary
#5D35A9 #A99735 #47A935
monochromatic
#2A184C #43267A #5D35A9 #7B52C9 #9F81D7

Accessibility & contrast

On white

8.24
#5D35A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5D35A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D35A9
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D35A9#FFFFFF#000000##FFFFFF
##5D35A91.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#004DA7
Tritanopia (blue-blind)
#47516B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d35a9;
/* rgb */ color: rgb(93, 53, 169);
/* oklch */ color: oklch(44.5% 0.175 293.9);
Tailwind
colors: {
  custom: {
    50: '#916fc3',
    500: '#5d35a9',
    950: '#000000',
  },
}
SCSS
$custom: #5d35a9;
$custom-light: #916fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d35a9",
  "rgb": {
    "r": 93,
    "g": 53,
    "b": 169
  },
  "hsl": {
    "h": 260.69,
    "s": 52.252,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44547,
    "c": 0.17526,
    "h": 293.9
  },
  "luminance": 0.07738
}

Semantic roles & 50–950 ramp

primary
#5D35A9
secondary
#A8C179
accent
#DC4CAA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5D35A9

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

Preview Lab → · Contrast checker → · Palette generator →

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