#5A41BB#5A41BB

#5A41BB is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.5% C 0.182 H 286.7°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5A41BB
RGBrgb(90, 65, 187)
HSLhsl(252, 48%, 49%)
HSVhsv(252, 65%, 73%)
CMYKcmyk(51.9%, 65.2%, 0%, 26.7%)
CIE-LABlab(37.01, 42.17, -60.88)
CIE-LCHlch(37.01, 74.06, 304.71°)
OKLaboklab(47.5% 0.0522 -0.1747)
OKLCHoklch(47.5% 0.182 286.7)
XYZxyz(15.0737, 9.5414, 48.0515)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A41BB #A2BB41
analogous
#4165BB #5A41BB #9741BB
triadic
#5A41BB #BB5A41 #41BB5A
tetradic
#5A41BB #BB4165 #A2BB41 #41BB97
square
#5A41BB #BB4165 #A2BB41 #41BB97
split-complementary
#5A41BB #BB9741 #65BB41
monochromatic
#2E2160 #44318E #5A41BB #806DCC #A89ADC

Accessibility & contrast

On white

7.22
#5A41BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5A41BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A41BB
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A41BB#FFFFFF#000000##FFFFFF
##5A41BB1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#355F78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a41bb;
/* rgb */ color: rgb(90, 65, 187);
/* oklch */ color: oklch(47.5% 0.182 286.7);
Tailwind
colors: {
  custom: {
    50: '#9177d0',
    500: '#5a41bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a41bb;
$custom-light: #9177d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a41bb",
  "rgb": {
    "r": 90,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 252.295,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47497,
    "c": 0.18231,
    "h": 286.7
  },
  "luminance": 0.09542
}

Semantic roles & 50–950 ramp

primary
#5A41BB
secondary
#BDC890
accent
#D850BC
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5A41BB

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

Preview Lab → · Contrast checker → · Palette generator →

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