#5D41CC#5D41CC

#5D41CC is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.2% C 0.203 H 285.4°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#5D41CC
RGBrgb(93, 65, 204)
HSLhsl(252, 58%, 53%)
HSVhsv(252, 68%, 80%)
CMYKcmyk(54.4%, 68.1%, 0%, 20%)
CIE-LABlab(38.67, 47.73, -68.08)
CIE-LCHlch(38.67, 83.14, 305.03°)
OKLaboklab(49.19% 0.054 -0.1957)
OKLCHoklch(49.19% 0.203 285.4)
XYZxyz(17.3003, 10.4664, 58.2236)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41CC #B0CC41
analogous
#416BCC #5D41CC #A241CC
triadic
#5D41CC #CC5D41 #41CC5D
tetradic
#5D41CC #CC416B #B0CC41 #41CCA2
square
#5D41CC #CC416B #B0CC41 #41CCA2
split-complementary
#5D41CC #CCA241 #6BCC41
monochromatic
#301F74 #442CA4 #5D41CC #8671D9 #AFA1E6

Accessibility & contrast

On white

6.79
#5D41CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5D41CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D41CC
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41CC#FFFFFF#000000##FFFFFF
##5D41CC1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#2C6581
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d41cc;
/* rgb */ color: rgb(93, 65, 204);
/* oklch */ color: oklch(49.2% 0.203 285.4);
Tailwind
colors: {
  custom: {
    50: '#9578dd',
    500: '#5d41cc',
    950: '#000000',
  },
}
SCSS
$custom: #5d41cc;
$custom-light: #9578dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41cc",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 204
  },
  "hsl": {
    "h": 252.086,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4919,
    "c": 0.20304,
    "h": 285.4
  },
  "luminance": 0.10467
}

Semantic roles & 50–950 ramp

primary
#5D41CC
secondary
#C6D396
accent
#E147C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D41CC

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

Preview Lab → · Contrast checker → · Palette generator →

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