#5A41CD#5A41CD

#5A41CD is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.0% C 0.205 H 284.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5A41CD
RGBrgb(90, 65, 205)
HSLhsl(251, 58%, 53%)
HSVhsv(251, 68%, 80%)
CMYKcmyk(56.1%, 68.3%, 0%, 19.6%)
CIE-LABlab(38.48, 47.55, -68.97)
CIE-LCHlch(38.48, 83.77, 304.58°)
OKLaboklab(49.02% 0.0498 -0.1984)
OKLCHoklch(49.02% 0.205 284.1)
XYZxyz(17.1228, 10.3610, 58.8434)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A41CD #B4CD41
analogous
#416ECD #5A41CD #A041CD
triadic
#5A41CD #CD5A41 #41CD5A
tetradic
#5A41CD #CD416E #B4CD41 #41CDA0
square
#5A41CD #CD416E #B4CD41 #41CDA0
split-complementary
#5A41CD #CDA041 #6ECD41
monochromatic
#2E1F75 #412CA5 #5A41CD #8471DA #AEA2E6

Accessibility & contrast

On white

6.84
#5A41CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5A41CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A41CD
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A41CD#FFFFFF#000000##FFFFFF
##5A41CD1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0056CA
Tritanopia (blue-blind)
#216582
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a41cd;
/* rgb */ color: rgb(90, 65, 205);
/* oklch */ color: oklch(49.0% 0.205 284.1);
Tailwind
colors: {
  custom: {
    50: '#9478dd',
    500: '#5a41cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a41cd;
$custom-light: #9478dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a41cd",
  "rgb": {
    "r": 90,
    "g": 65,
    "b": 205
  },
  "hsl": {
    "h": 250.714,
    "s": 58.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49019,
    "c": 0.20457,
    "h": 284.1
  },
  "luminance": 0.10362
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A41CD

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

Preview Lab → · Contrast checker → · Palette generator →

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