#5D41C4#5D41C4

#5D41C4 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.193 H 286.6°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#5D41C4
RGBrgb(93, 65, 196)
HSLhsl(253, 53%, 51%)
HSVhsv(253, 67%, 77%)
CMYKcmyk(52.6%, 66.8%, 0%, 23.1%)
CIE-LABlab(38.01, 45.37, -64.51)
CIE-LCHlch(38.01, 78.86, 305.12°)
OKLaboklab(48.51% 0.0552 -0.1852)
OKLCHoklch(48.51% 0.193 286.6)
XYZxyz(16.3653, 10.0924, 53.2996)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41C4 #A8C441
analogous
#4166C4 #5D41C4 #9E41C4
triadic
#5D41C4 #C45D41 #41C45D
tetradic
#5D41C4 #C44166 #A8C441 #41C49E
square
#5D41C4 #C44166 #A8C441 #41C49E
split-complementary
#5D41C4 #C49E41 #66C441
monochromatic
#30216A #462F98 #5D41C4 #8570D3 #AD9EE1

Accessibility & contrast

On white

6.96
#5D41C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5D41C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D41C4
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41C4#FFFFFF#000000##FFFFFF
##5D41C41.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC8
Deuteranopia (green-blind)
#0056C1
Tritanopia (blue-blind)
#34627D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d41c4;
/* rgb */ color: rgb(93, 65, 196);
/* oklch */ color: oklch(48.5% 0.193 286.6);
Tailwind
colors: {
  custom: {
    50: '#9477d7',
    500: '#5d41c4',
    950: '#000000',
  },
}
SCSS
$custom: #5d41c4;
$custom-light: #9477d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41c4",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 196
  },
  "hsl": {
    "h": 252.824,
    "s": 52.61,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48513,
    "c": 0.19327,
    "h": 286.6
  },
  "luminance": 0.10093
}

Semantic roles & 50–950 ramp

primary
#5D41C4
secondary
#C1CD93
accent
#DC4CBD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5D41C4

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

Preview Lab → · Contrast checker → · Palette generator →

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