#5B41C8#5B41C8

#5B41C8 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.198 H 285.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5B41C8
RGBrgb(91, 65, 200)
HSLhsl(252, 55%, 52%)
HSVhsv(252, 68%, 78%)
CMYKcmyk(54.5%, 67.5%, 0%, 21.6%)
CIE-LABlab(38.15, 46.22, -66.61)
CIE-LCHlch(38.15, 81.07, 304.76°)
OKLaboklab(48.67% 0.0519 -0.1914)
OKLCHoklch(48.67% 0.198 285.2)
XYZxyz(16.6269, 10.1739, 55.7200)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41C8 #AEC841
analogous
#416AC8 #5B41C8 #9F41C8
triadic
#5B41C8 #C85B41 #41C85B
tetradic
#5B41C8 #C8416A #AEC841 #41C89F
square
#5B41C8 #C8416A #AEC841 #41C89F
split-complementary
#5B41C8 #C89F41 #6AC841
monochromatic
#2F206F #432E9E #5B41C8 #8470D6 #ADA0E3

Accessibility & contrast

On white

6.92
#5B41C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5B41C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41C8
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41C8#FFFFFF#000000##FFFFFF
##5B41C81.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#2B647F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b41c8;
/* rgb */ color: rgb(91, 65, 200);
/* oklch */ color: oklch(48.7% 0.198 285.2);
Tailwind
colors: {
  custom: {
    50: '#9477da',
    500: '#5b41c8',
    950: '#000000',
  },
}
SCSS
$custom: #5b41c8;
$custom-light: #9477da;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41c8",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 251.556,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48674,
    "c": 0.19836,
    "h": 285.2
  },
  "luminance": 0.10175
}

Semantic roles & 50–950 ramp

primary
#5B41C8
secondary
#C5D095
accent
#DE49C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B41C8

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

Preview Lab → · Contrast checker → · Palette generator →

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