#5A41CF#5A41CF

#5A41CF is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.2% C 0.207 H 283.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#5A41CF
RGBrgb(90, 65, 207)
HSLhsl(251, 60%, 53%)
HSVhsv(251, 69%, 81%)
CMYKcmyk(56.5%, 68.6%, 0%, 18.8%)
CIE-LABlab(38.65, 48.15, -69.85)
CIE-LCHlch(38.65, 84.84, 304.58°)
OKLaboklab(49.19% 0.0494 -0.201)
OKLCHoklch(49.19% 0.207 283.8)
XYZxyz(17.3658, 10.4582, 60.1229)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A41CF #B6CF41
analogous
#416FCF #5A41CF #A141CF
triadic
#5A41CF #CF5A41 #41CF5A
tetradic
#5A41CF #CF416F #B6CF41 #41CFA1
square
#5A41CF #CF416F #B6CF41 #41CFA1
split-complementary
#5A41CF #CFA141 #6FCF41
monochromatic
#2E1E77 #412BA8 #5A41CF #8472DB #AFA3E8

Accessibility & contrast

On white

6.79
#5A41CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5A41CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A41CF
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A41CF#FFFFFF#000000##FFFFFF
##5A41CF1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0056CC
Tritanopia (blue-blind)
#1E6683
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a41cf;
/* rgb */ color: rgb(90, 65, 207);
/* oklch */ color: oklch(49.2% 0.207 283.8);
Tailwind
colors: {
  custom: {
    50: '#9478df',
    500: '#5a41cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a41cf;
$custom-light: #9478df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a41cf",
  "rgb": {
    "r": 90,
    "g": 65,
    "b": 207
  },
  "hsl": {
    "h": 250.563,
    "s": 59.664,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49193,
    "c": 0.207,
    "h": 283.8
  },
  "luminance": 0.10459
}

Semantic roles & 50–950 ramp

primary
#5A41CF
secondary
#CAD497
accent
#E345C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A41CF

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

Preview Lab → · Contrast checker → · Palette generator →

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