#5D41C2#5D41C2

#5D41C2 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.191 H 286.9°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5D41C2
RGBrgb(93, 65, 194)
HSLhsl(253, 51%, 51%)
HSVhsv(253, 66%, 76%)
CMYKcmyk(52.1%, 66.5%, 0%, 23.9%)
CIE-LABlab(37.85, 44.78, -63.60)
CIE-LCHlch(37.85, 77.78, 305.15°)
OKLaboklab(48.35% 0.0555 -0.1826)
OKLCHoklch(48.35% 0.191 286.9)
XYZxyz(16.1392, 10.0020, 52.1086)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41C2 #A6C241
analogous
#4165C2 #5D41C2 #9D41C2
triadic
#5D41C2 #C25D41 #41C25D
tetradic
#5D41C2 #C24165 #A6C241 #41C29D
square
#5D41C2 #C24165 #A6C241 #41C29D
split-complementary
#5D41C2 #C29D41 #65C241
monochromatic
#302167 #463096 #5D41C2 #846FD1 #AC9EE0

Accessibility & contrast

On white

7.00
#5D41C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5D41C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D41C2
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41C2#FFFFFF#000000##FFFFFF
##5D41C21.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0055BF
Tritanopia (blue-blind)
#36617C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d41c2;
/* rgb */ color: rgb(93, 65, 194);
/* oklch */ color: oklch(48.3% 0.191 286.9);
Tailwind
colors: {
  custom: {
    50: '#9477d5',
    500: '#5d41c2',
    950: '#000000',
  },
}
SCSS
$custom: #5d41c2;
$custom-light: #9477d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41c2",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 253.023,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48346,
    "c": 0.19081,
    "h": 286.9
  },
  "luminance": 0.10003
}

Semantic roles & 50–950 ramp

primary
#5D41C2
secondary
#C0CC93
accent
#DB4DBC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5D41C2

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

Preview Lab → · Contrast checker → · Palette generator →

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