#5B41DA#5B41DA

#5B41DA is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.2% C 0.220 H 282.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5B41DA
RGBrgb(91, 65, 218)
HSLhsl(250, 67%, 55%)
HSVhsv(250, 70%, 85%)
CMYKcmyk(58.3%, 70.2%, 0%, 14.5%)
CIE-LABlab(39.69, 51.57, -74.48)
CIE-LCHlch(39.69, 90.59, 304.70°)
OKLaboklab(50.25% 0.0489 -0.2145)
OKLCHoklch(50.25% 0.22 282.8)
XYZxyz(18.8557, 11.0655, 67.4583)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41DA #C0DA41
analogous
#4173DA #5B41DA #A741DA
triadic
#5B41DA #DA5B41 #41DA5B
tetradic
#5B41DA #DA4173 #C0DA41 #41DAA7
square
#5B41DA #DA4173 #C0DA41 #41DAA7
split-complementary
#5B41DA #DAA741 #73DA41
monochromatic
#2D1A86 #3E24BA #5B41DA #8774E4 #B3A7EE

Accessibility & contrast

On white

6.54
#5B41DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5B41DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B41DA
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41DA#FFFFFF#000000##FFFFFF
##5B41DA1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DF
Deuteranopia (green-blind)
#0058D7
Tritanopia (blue-blind)
#066A89
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5b41da;
/* rgb */ color: rgb(91, 65, 218);
/* oklch */ color: oklch(50.2% 0.220 282.8);
Tailwind
colors: {
  custom: {
    50: '#9778e7',
    500: '#5b41da',
    950: '#000000',
  },
}
SCSS
$custom: #5b41da;
$custom-light: #9778e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41da",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 218
  },
  "hsl": {
    "h": 250.196,
    "s": 67.401,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50248,
    "c": 0.22004,
    "h": 282.8
  },
  "luminance": 0.11067
}

Semantic roles & 50–950 ramp

primary
#5B41DA
secondary
#D0DB9C
accent
#EA3ECD
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B41DA

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

Preview Lab → · Contrast checker → · Palette generator →

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