#5B41CD#5B41CD

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

Color values

HEX#5B41CD
RGBrgb(91, 65, 205)
HSLhsl(251, 58%, 53%)
HSVhsv(251, 68%, 80%)
CMYKcmyk(55.6%, 68.3%, 0%, 19.6%)
CIE-LABlab(38.57, 47.71, -68.82)
CIE-LCHlch(38.57, 83.74, 304.73°)
OKLaboklab(49.1% 0.0511 -0.198)
OKLCHoklch(49.1% 0.204 284.5)
XYZxyz(17.2208, 10.4115, 58.8480)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41CD #B3CD41
analogous
#416DCD #5B41CD #A141CD
triadic
#5B41CD #CD5B41 #41CD5B
tetradic
#5B41CD #CD416D #B3CD41 #41CDA1
square
#5B41CD #CD416D #B3CD41 #41CDA1
split-complementary
#5B41CD #CDA141 #6DCD41
monochromatic
#2F1F75 #422CA5 #5B41CD #8571DA #AFA2E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B41CD#FFFFFF#000000##FFFFFF
##5B41CD1.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)
#005FD1
Deuteranopia (green-blind)
#0056CA
Tritanopia (blue-blind)
#256582
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b41cd;
/* rgb */ color: rgb(91, 65, 205);
/* oklch */ color: oklch(49.1% 0.204 284.5);
Tailwind
colors: {
  custom: {
    50: '#9478dd',
    500: '#5b41cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b41cd;
$custom-light: #9478dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41cd",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 205
  },
  "hsl": {
    "h": 251.143,
    "s": 58.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49104,
    "c": 0.20445,
    "h": 284.5
  },
  "luminance": 0.10413
}

Semantic roles & 50–950 ramp

primary
#5B41CD
secondary
#C8D397
accent
#E246C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B41CD

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

Preview Lab → · Contrast checker → · Palette generator →

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