#5D41CA#5D41CA

#5D41CA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.0% C 0.201 H 285.7°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5D41CA
RGBrgb(93, 65, 202)
HSLhsl(252, 56%, 52%)
HSVhsv(252, 68%, 79%)
CMYKcmyk(54%, 67.8%, 0%, 20.8%)
CIE-LABlab(38.50, 47.14, -67.19)
CIE-LCHlch(38.50, 82.08, 305.05°)
OKLaboklab(49.02% 0.0543 -0.1931)
OKLCHoklch(49.02% 0.201 285.7)
XYZxyz(17.0620, 10.3711, 56.9684)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41CA #AECA41
analogous
#4169CA #5D41CA #A241CA
triadic
#5D41CA #CA5D41 #41CA5D
tetradic
#5D41CA #CA4169 #AECA41 #41CAA2
square
#5D41CA #CA4169 #AECA41 #41CAA2
split-complementary
#5D41CA #CAA241 #69CA41
monochromatic
#302071 #452DA1 #5D41CA #8671D7 #AFA1E5

Accessibility & contrast

On white

6.83
#5D41CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5D41CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D41CA
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41CA#FFFFFF#000000##FFFFFF
##5D41CA1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0057C7
Tritanopia (blue-blind)
#2E6480
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d41ca;
/* rgb */ color: rgb(93, 65, 202);
/* oklch */ color: oklch(49.0% 0.201 285.7);
Tailwind
colors: {
  custom: {
    50: '#9578db',
    500: '#5d41ca',
    950: '#000000',
  },
}
SCSS
$custom: #5d41ca;
$custom-light: #9578db;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41ca",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 202
  },
  "hsl": {
    "h": 252.263,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49019,
    "c": 0.20061,
    "h": 285.7
  },
  "luminance": 0.10372
}

Semantic roles & 50–950 ramp

primary
#5D41CA
secondary
#C5D196
accent
#E048C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D41CA

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

Preview Lab → · Contrast checker → · Palette generator →

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