#5A41CB#5A41CB

#5A41CB is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 48.8% C 0.202 H 284.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5A41CB
RGBrgb(90, 65, 203)
HSLhsl(251, 57%, 53%)
HSVhsv(251, 68%, 80%)
CMYKcmyk(55.7%, 68%, 0%, 20.4%)
CIE-LABlab(38.31, 46.95, -68.09)
CIE-LCHlch(38.31, 82.71, 304.59°)
OKLaboklab(48.85% 0.0501 -0.1958)
OKLCHoklch(48.85% 0.202 284.3)
XYZxyz(16.8830, 10.2650, 57.5801)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A41CB #B2CB41
analogous
#416DCB #5A41CB #9F41CB
triadic
#5A41CB #CB5A41 #41CB5A
tetradic
#5A41CB #CB416D #B2CB41 #41CB9F
square
#5A41CB #CB416D #B2CB41 #41CB9F
split-complementary
#5A41CB #CB9F41 #6DCB41
monochromatic
#2E1F72 #422CA2 #5A41CB #8471D8 #ADA1E5

Accessibility & contrast

On white

6.88
#5A41CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5A41CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A41CB
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A41CB#FFFFFF#000000##FFFFFF
##5A41CB1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0056C8
Tritanopia (blue-blind)
#246581
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a41cb;
/* rgb */ color: rgb(90, 65, 203);
/* oklch */ color: oklch(48.8% 0.202 284.3);
Tailwind
colors: {
  custom: {
    50: '#9478dc',
    500: '#5a41cb',
    950: '#000000',
  },
}
SCSS
$custom: #5a41cb;
$custom-light: #9478dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a41cb",
  "rgb": {
    "r": 90,
    "g": 65,
    "b": 203
  },
  "hsl": {
    "h": 250.87,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48846,
    "c": 0.20214,
    "h": 284.3
  },
  "luminance": 0.10266
}

Semantic roles & 50–950 ramp

primary
#5A41CB
secondary
#C7D296
accent
#E048C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A41CB

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

Preview Lab → · Contrast checker → · Palette generator →

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