#5D41CB#5D41CB

#5D41CB is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.1% C 0.202 H 285.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5D41CB
RGBrgb(93, 65, 203)
HSLhsl(252, 57%, 53%)
HSVhsv(252, 68%, 80%)
CMYKcmyk(54.2%, 68%, 0%, 20.4%)
CIE-LABlab(38.58, 47.43, -67.64)
CIE-LCHlch(38.58, 82.61, 305.04°)
OKLaboklab(49.11% 0.0542 -0.1944)
OKLCHoklch(49.11% 0.202 285.6)
XYZxyz(17.1807, 10.4186, 57.5940)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41CB #AFCB41
analogous
#416ACB #5D41CB #A241CB
triadic
#5D41CB #CB5D41 #41CB5D
tetradic
#5D41CB #CB416A #AFCB41 #41CBA2
square
#5D41CB #CB416A #AFCB41 #41CBA2
split-complementary
#5D41CB #CBA241 #6ACB41
monochromatic
#301F72 #442CA2 #5D41CB #8671D8 #AFA1E5

Accessibility & contrast

On white

6.81
#5D41CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5D41CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D41CB
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41CB#FFFFFF#000000##FFFFFF
##5D41CB1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#2D6481
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d41cb;
/* rgb */ color: rgb(93, 65, 203);
/* oklch */ color: oklch(49.1% 0.202 285.6);
Tailwind
colors: {
  custom: {
    50: '#9578dc',
    500: '#5d41cb',
    950: '#000000',
  },
}
SCSS
$custom: #5d41cb;
$custom-light: #9578dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41cb",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 203
  },
  "hsl": {
    "h": 252.174,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49105,
    "c": 0.20183,
    "h": 285.6
  },
  "luminance": 0.1042
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D41CB

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

Preview Lab → · Contrast checker → · Palette generator →

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