#5A41CA#5A41CA

#5A41CA is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.8% C 0.201 H 284.5°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5A41CA
RGBrgb(90, 65, 202)
HSLhsl(251, 56%, 52%)
HSVhsv(251, 68%, 79%)
CMYKcmyk(55.4%, 67.8%, 0%, 20.8%)
CIE-LABlab(38.23, 46.65, -67.65)
CIE-LCHlch(38.23, 82.17, 304.59°)
OKLaboklab(48.76% 0.0502 -0.1945)
OKLCHoklch(48.76% 0.201 284.5)
XYZxyz(16.7642, 10.2175, 56.9545)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A41CA #B1CA41
analogous
#416CCA #5A41CA #9F41CA
triadic
#5A41CA #CA5A41 #41CA5A
tetradic
#5A41CA #CA416C #B1CA41 #41CA9F
square
#5A41CA #CA416C #B1CA41 #41CA9F
split-complementary
#5A41CA #CA9F41 #6CCA41
monochromatic
#2E2071 #422DA1 #5A41CA #8471D7 #ADA1E5

Accessibility & contrast

On white

6.90
#5A41CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5A41CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A41CA
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A41CA#FFFFFF#000000##FFFFFF
##5A41CA1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#256480
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a41ca;
/* rgb */ color: rgb(90, 65, 202);
/* oklch */ color: oklch(48.8% 0.201 284.5);
Tailwind
colors: {
  custom: {
    50: '#9377db',
    500: '#5a41ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a41ca;
$custom-light: #9377db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a41ca",
  "rgb": {
    "r": 90,
    "g": 65,
    "b": 202
  },
  "hsl": {
    "h": 250.949,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4876,
    "c": 0.20092,
    "h": 284.5
  },
  "luminance": 0.10219
}

Semantic roles & 50–950 ramp

primary
#5A41CA
secondary
#C6D196
accent
#E048C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A41CA

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

Preview Lab → · Contrast checker → · Palette generator →

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