#5B41CB#5B41CB

#5B41CB is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 48.9% C 0.202 H 284.8°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5B41CB
RGBrgb(91, 65, 203)
HSLhsl(251, 57%, 53%)
HSVhsv(251, 68%, 80%)
CMYKcmyk(55.2%, 68%, 0%, 20.4%)
CIE-LABlab(38.40, 47.11, -67.94)
CIE-LCHlch(38.40, 82.68, 304.74°)
OKLaboklab(48.93% 0.0514 -0.1954)
OKLCHoklch(48.93% 0.202 284.8)
XYZxyz(16.9809, 10.3156, 57.5847)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41CB #B1CB41
analogous
#416CCB #5B41CB #A041CB
triadic
#5B41CB #CB5B41 #41CB5B
tetradic
#5B41CB #CB416C #B1CB41 #41CBA0
square
#5B41CB #CB416C #B1CB41 #41CBA0
split-complementary
#5B41CB #CBA041 #6CCB41
monochromatic
#2F1F72 #432CA2 #5B41CB #8471D8 #AEA1E5

Accessibility & contrast

On white

6.86
#5B41CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5B41CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41CB
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41CB#FFFFFF#000000##FFFFFF
##5B41CB1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0056C8
Tritanopia (blue-blind)
#276581
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b41cb;
/* rgb */ color: rgb(91, 65, 203);
/* oklch */ color: oklch(48.9% 0.202 284.8);
Tailwind
colors: {
  custom: {
    50: '#9478dc',
    500: '#5b41cb',
    950: '#000000',
  },
}
SCSS
$custom: #5b41cb;
$custom-light: #9478dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41cb",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 203
  },
  "hsl": {
    "h": 251.304,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48931,
    "c": 0.20203,
    "h": 284.8
  },
  "luminance": 0.10317
}

Semantic roles & 50–950 ramp

primary
#5B41CB
secondary
#C7D296
accent
#E048C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B41CB

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

Preview Lab → · Contrast checker → · Palette generator →

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