#5D41CD#5D41CD

#5D41CD is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.3% C 0.204 H 285.3°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#5D41CD
RGBrgb(93, 65, 205)
HSLhsl(252, 58%, 53%)
HSVhsv(252, 68%, 80%)
CMYKcmyk(54.6%, 68.3%, 0%, 19.6%)
CIE-LABlab(38.75, 48.02, -68.52)
CIE-LCHlch(38.75, 83.68, 305.02°)
OKLaboklab(49.28% 0.0539 -0.197)
OKLCHoklch(49.28% 0.204 285.3)
XYZxyz(17.4206, 10.5145, 58.8573)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41CD #B1CD41
analogous
#416BCD #5D41CD #A341CD
triadic
#5D41CD #CD5D41 #41CD5D
tetradic
#5D41CD #CD416B #B1CD41 #41CDA3
square
#5D41CD #CD416B #B1CD41 #41CDA3
split-complementary
#5D41CD #CDA341 #6BCD41
monochromatic
#301F75 #442CA5 #5D41CD #8671DA #B0A2E6

Accessibility & contrast

On white

6.77
#5D41CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5D41CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D41CD
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41CD#FFFFFF#000000##FFFFFF
##5D41CD1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0057CA
Tritanopia (blue-blind)
#2B6582
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d41cd;
/* rgb */ color: rgb(93, 65, 205);
/* oklch */ color: oklch(49.3% 0.204 285.3);
Tailwind
colors: {
  custom: {
    50: '#9678dd',
    500: '#5d41cd',
    950: '#000000',
  },
}
SCSS
$custom: #5d41cd;
$custom-light: #9678dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41cd",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 205
  },
  "hsl": {
    "h": 252,
    "s": 58.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49276,
    "c": 0.20425,
    "h": 285.3
  },
  "luminance": 0.10516
}

Semantic roles & 50–950 ramp

primary
#5D41CD
secondary
#C7D397
accent
#E246C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D41CD

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

Preview Lab → · Contrast checker → · Palette generator →

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