#5B41CC#5B41CC

#5B41CC is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.0% C 0.203 H 284.6°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5B41CC
RGBrgb(91, 65, 204)
HSLhsl(251, 58%, 53%)
HSVhsv(251, 68%, 80%)
CMYKcmyk(55.4%, 68.1%, 0%, 20%)
CIE-LABlab(38.49, 47.41, -68.38)
CIE-LCHlch(38.49, 83.21, 304.73°)
OKLaboklab(49.02% 0.0513 -0.1967)
OKLCHoklch(49.02% 0.203 284.6)
XYZxyz(17.1005, 10.3634, 58.2143)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41CC #B2CC41
analogous
#416CCC #5B41CC #A041CC
triadic
#5B41CC #CC5B41 #41CC5B
tetradic
#5B41CC #CC416C #B2CC41 #41CCA0
square
#5B41CC #CC416C #B2CC41 #41CCA0
split-complementary
#5B41CC #CCA041 #6CCC41
monochromatic
#2F1F74 #422CA4 #5B41CC #8571D9 #AEA1E6

Accessibility & contrast

On white

6.83
#5B41CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5B41CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41CC
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41CC#FFFFFF#000000##FFFFFF
##5B41CC1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#266581
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b41cc;
/* rgb */ color: rgb(91, 65, 204);
/* oklch */ color: oklch(49.0% 0.203 284.6);
Tailwind
colors: {
  custom: {
    50: '#9478dd',
    500: '#5b41cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b41cc;
$custom-light: #9478dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41cc",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 204
  },
  "hsl": {
    "h": 251.223,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49017,
    "c": 0.20325,
    "h": 284.6
  },
  "luminance": 0.10364
}

Semantic roles & 50–950 ramp

primary
#5B41CC
secondary
#C7D396
accent
#E147C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B41CC

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

Preview Lab → · Contrast checker → · Palette generator →

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