#5A41CE#5A41CE

#5A41CE is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.1% C 0.206 H 283.9°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5A41CE
RGBrgb(90, 65, 206)
HSLhsl(251, 59%, 53%)
HSVhsv(251, 68%, 81%)
CMYKcmyk(56.3%, 68.4%, 0%, 19.2%)
CIE-LABlab(38.57, 47.85, -69.41)
CIE-LCHlch(38.57, 84.31, 304.58°)
OKLaboklab(49.11% 0.0496 -0.1997)
OKLCHoklch(49.11% 0.206 283.9)
XYZxyz(17.2439, 10.4094, 59.4811)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A41CE #B5CE41
analogous
#416ECE #5A41CE #A041CE
triadic
#5A41CE #CE5A41 #41CE5A
tetradic
#5A41CE #CE416E #B5CE41 #41CEA0
square
#5A41CE #CE416E #B5CE41 #41CEA0
split-complementary
#5A41CE #CEA041 #6ECE41
monochromatic
#2E1E76 #412BA7 #5A41CE #8472DB #AFA2E7

Accessibility & contrast

On white

6.81
#5A41CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5A41CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A41CE
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A41CE#FFFFFF#000000##FFFFFF
##5A41CE1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0056CB
Tritanopia (blue-blind)
#1F6682
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a41ce;
/* rgb */ color: rgb(90, 65, 206);
/* oklch */ color: oklch(49.1% 0.206 283.9);
Tailwind
colors: {
  custom: {
    50: '#9478de',
    500: '#5a41ce',
    950: '#000000',
  },
}
SCSS
$custom: #5a41ce;
$custom-light: #9478de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a41ce",
  "rgb": {
    "r": 90,
    "g": 65,
    "b": 206
  },
  "hsl": {
    "h": 250.638,
    "s": 58.996,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49106,
    "c": 0.20579,
    "h": 283.9
  },
  "luminance": 0.1041
}

Semantic roles & 50–950 ramp

primary
#5A41CE
secondary
#C9D497
accent
#E246C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A41CE

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

Preview Lab → · Contrast checker → · Palette generator →

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