#5A41CC#5A41CC

#5A41CC is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 48.9% C 0.203 H 284.2°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5A41CC
RGBrgb(90, 65, 204)
HSLhsl(251, 58%, 53%)
HSVhsv(251, 68%, 80%)
CMYKcmyk(55.9%, 68.1%, 0%, 20%)
CIE-LABlab(38.40, 47.25, -68.53)
CIE-LCHlch(38.40, 83.24, 304.59°)
OKLaboklab(48.93% 0.0499 -0.1971)
OKLCHoklch(48.93% 0.203 284.2)
XYZxyz(17.0025, 10.3129, 58.2097)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A41CC #B3CC41
analogous
#416ECC #5A41CC #9F41CC
triadic
#5A41CC #CC5A41 #41CC5A
tetradic
#5A41CC #CC416E #B3CC41 #41CC9F
square
#5A41CC #CC416E #B3CC41 #41CC9F
split-complementary
#5A41CC #CC9F41 #6ECC41
monochromatic
#2E1F74 #422CA4 #5A41CC #8471D9 #AEA1E6

Accessibility & contrast

On white

6.86
#5A41CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5A41CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A41CC
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A41CC#FFFFFF#000000##FFFFFF
##5A41CC1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#226581
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a41cc;
/* rgb */ color: rgb(90, 65, 204);
/* oklch */ color: oklch(48.9% 0.203 284.2);
Tailwind
colors: {
  custom: {
    50: '#9478dd',
    500: '#5a41cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a41cc;
$custom-light: #9478dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a41cc",
  "rgb": {
    "r": 90,
    "g": 65,
    "b": 204
  },
  "hsl": {
    "h": 250.791,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48932,
    "c": 0.20335,
    "h": 284.2
  },
  "luminance": 0.10314
}

Semantic roles & 50–950 ramp

primary
#5A41CC
secondary
#C8D396
accent
#E147C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A41CC

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

Preview Lab → · Contrast checker → · Palette generator →

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