#5A40CE#5A40CE

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

Color values

HEX#5A40CE
RGBrgb(90, 64, 206)
HSLhsl(251, 59%, 53%)
HSVhsv(251, 69%, 81%)
CMYKcmyk(56.3%, 68.9%, 0%, 19.2%)
CIE-LABlab(38.37, 48.40, -69.74)
CIE-LCHlch(38.37, 84.89, 304.76°)
OKLaboklab(48.96% 0.0504 -0.2007)
OKLCHoklch(48.96% 0.207 284.1)
XYZxyz(17.1870, 10.2956, 59.4622)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A40CE #B4CE40
analogous
#406DCE #5A40CE #A140CE
triadic
#5A40CE #CE5A40 #40CE5A
tetradic
#5A40CE #CE406D #B4CE40 #40CEA1
square
#5A40CE #CE406D #B4CE40 #40CEA1
split-complementary
#5A40CE #CEA140 #6DCE40
monochromatic
#2E1E75 #412BA6 #5A40CE #8471DA #AEA1E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A40CE#FFFFFF#000000##FFFFFF
##5A40CE1.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)
#005FD2
Deuteranopia (green-blind)
#0056CB
Tritanopia (blue-blind)
#206582
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a40ce;
/* rgb */ color: rgb(90, 64, 206);
/* oklch */ color: oklch(49.0% 0.207 284.1);
Tailwind
colors: {
  custom: {
    50: '#9477de',
    500: '#5a40ce',
    950: '#000000',
  },
}
SCSS
$custom: #5a40ce;
$custom-light: #9477de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a40ce",
  "rgb": {
    "r": 90,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 250.986,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48963,
    "c": 0.20691,
    "h": 284.1
  },
  "luminance": 0.10297
}

Semantic roles & 50–950 ramp

primary
#5A40CE
secondary
#C8D496
accent
#E245C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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