#5A41BE#5A41BE

#5A41BE is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.186 H 286.2°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5A41BE
RGBrgb(90, 65, 190)
HSLhsl(252, 49%, 50%)
HSVhsv(252, 66%, 75%)
CMYKcmyk(52.6%, 65.8%, 0%, 25.5%)
CIE-LABlab(37.25, 43.06, -62.25)
CIE-LCHlch(37.25, 75.69, 304.67°)
OKLaboklab(47.75% 0.0519 -0.1787)
OKLCHoklch(47.75% 0.186 286.2)
XYZxyz(15.3982, 9.6712, 49.7606)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A41BE #A5BE41
analogous
#4166BE #5A41BE #9941BE
triadic
#5A41BE #BE5A41 #41BE5A
tetradic
#5A41BE #BE4166 #A5BE41 #41BE99
square
#5A41BE #BE4166 #A5BE41 #41BE99
split-complementary
#5A41BE #BE9941 #66BE41
monochromatic
#2F2263 #443190 #5A41BE #826FCE #A99CDD

Accessibility & contrast

On white

7.16
#5A41BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5A41BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A41BE
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A41BE#FFFFFF#000000##FFFFFF
##5A41BE1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#32607A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a41be;
/* rgb */ color: rgb(90, 65, 190);
/* oklch */ color: oklch(47.7% 0.186 286.2);
Tailwind
colors: {
  custom: {
    50: '#9277d3',
    500: '#5a41be',
    950: '#000000',
  },
}
SCSS
$custom: #5a41be;
$custom-light: #9277d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a41be",
  "rgb": {
    "r": 90,
    "g": 65,
    "b": 190
  },
  "hsl": {
    "h": 252,
    "s": 49.02,
    "l": 50
  },
  "oklch": {
    "l": 0.47745,
    "c": 0.18608,
    "h": 286.2
  },
  "luminance": 0.09672
}

Semantic roles & 50–950 ramp

primary
#5A41BE
secondary
#BEC991
accent
#D94FBD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A41BE

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

Preview Lab → · Contrast checker → · Palette generator →

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