#5D41C8#5D41C8

#5D41C8 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.9% C 0.198 H 286.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5D41C8
RGBrgb(93, 65, 200)
HSLhsl(252, 55%, 52%)
HSVhsv(252, 68%, 78%)
CMYKcmyk(53.5%, 67.5%, 0%, 21.6%)
CIE-LABlab(38.34, 46.55, -66.30)
CIE-LCHlch(38.34, 81.01, 305.07°)
OKLaboklab(48.85% 0.0546 -0.1905)
OKLCHoklch(48.85% 0.198 286)
XYZxyz(16.8267, 10.2770, 55.7294)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41C8 #ACC841
analogous
#4169C8 #5D41C8 #A041C8
triadic
#5D41C8 #C85D41 #41C85D
tetradic
#5D41C8 #C84169 #ACC841 #41C8A0
square
#5D41C8 #C84169 #ACC841 #41C8A0
split-complementary
#5D41C8 #C8A041 #69C841
monochromatic
#30206F #452E9E #5D41C8 #8570D6 #AEA0E3

Accessibility & contrast

On white

6.87
#5D41C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5D41C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D41C8
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41C8#FFFFFF#000000##FFFFFF
##5D41C81.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#30637F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d41c8;
/* rgb */ color: rgb(93, 65, 200);
/* oklch */ color: oklch(48.9% 0.198 286.0);
Tailwind
colors: {
  custom: {
    50: '#9578da',
    500: '#5d41c8',
    950: '#000000',
  },
}
SCSS
$custom: #5d41c8;
$custom-light: #9578da;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41c8",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 252.444,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.4885,
    "c": 0.19817,
    "h": 286
  },
  "luminance": 0.10278
}

Semantic roles & 50–950 ramp

primary
#5D41C8
secondary
#C4D095
accent
#DE49C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D41C8

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

Preview Lab → · Contrast checker → · Palette generator →

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