#5A41BC#5A41BC

#5A41BC is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.184 H 286.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5A41BC
RGBrgb(90, 65, 188)
HSLhsl(252, 49%, 50%)
HSVhsv(252, 65%, 74%)
CMYKcmyk(52.1%, 65.4%, 0%, 26.3%)
CIE-LABlab(37.09, 42.47, -61.34)
CIE-LCHlch(37.09, 74.60, 304.70°)
OKLaboklab(47.58% 0.0521 -0.176)
OKLCHoklch(47.58% 0.184 286.5)
XYZxyz(15.1812, 9.5843, 48.6172)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A41BC #A3BC41
analogous
#4166BC #5A41BC #9841BC
triadic
#5A41BC #BC5A41 #41BC5A
tetradic
#5A41BC #BC4166 #A3BC41 #41BC98
square
#5A41BC #BC4166 #A3BC41 #41BC98
split-complementary
#5A41BC #BC9841 #66BC41
monochromatic
#2E2261 #44318F #5A41BC #816ECD #A89BDC

Accessibility & contrast

On white

7.20
#5A41BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5A41BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A41BC
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A41BC#FFFFFF#000000##FFFFFF
##5A41BC1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#345F79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a41bc;
/* rgb */ color: rgb(90, 65, 188);
/* oklch */ color: oklch(47.6% 0.184 286.5);
Tailwind
colors: {
  custom: {
    50: '#9177d1',
    500: '#5a41bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a41bc;
$custom-light: #9177d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a41bc",
  "rgb": {
    "r": 90,
    "g": 65,
    "b": 188
  },
  "hsl": {
    "h": 252.195,
    "s": 48.617,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4758,
    "c": 0.18356,
    "h": 286.5
  },
  "luminance": 0.09585
}

Semantic roles & 50–950 ramp

primary
#5A41BC
secondary
#BDC990
accent
#D850BC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A41BC

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

Preview Lab → · Contrast checker → · Palette generator →

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