#5A40DE#5A40DE

#5A40DE is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.4% C 0.226 H 282.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5A40DE
RGBrgb(90, 64, 222)
HSLhsl(250, 71%, 56%)
HSVhsv(250, 71%, 87%)
CMYKcmyk(59.5%, 71.2%, 0%, 12.9%)
CIE-LABlab(39.77, 53.14, -76.64)
CIE-LCHlch(39.77, 93.26, 304.74°)
OKLaboklab(50.39% 0.0475 -0.2209)
OKLCHoklch(50.39% 0.226 282.1)
XYZxyz(19.2305, 11.1131, 70.2247)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A40DE #C4DE40
analogous
#4075DE #5A40DE #A940DE
triadic
#5A40DE #DE5A40 #40DE5A
tetradic
#5A40DE #DE4075 #C4DE40 #40DEA9
square
#5A40DE #DE4075 #C4DE40 #40DEA9
split-complementary
#5A40DE #DEA940 #75DE40
monochromatic
#2B188B #3B21C0 #5A40DE #8774E7 #B4A8F0

Accessibility & contrast

On white

6.52
#5A40DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5A40DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A40DE
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A40DE#FFFFFF#000000##FFFFFF
##5A40DE1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E3
Deuteranopia (green-blind)
#0058DB
Tritanopia (blue-blind)
#006B8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a40de;
/* rgb */ color: rgb(90, 64, 222);
/* oklch */ color: oklch(50.4% 0.226 282.1);
Tailwind
colors: {
  custom: {
    50: '#9778ea',
    500: '#5a40de',
    950: '#000000',
  },
}
SCSS
$custom: #5a40de;
$custom-light: #9778ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5a40de",
  "rgb": {
    "r": 90,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 249.873,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50392,
    "c": 0.22594,
    "h": 282.1
  },
  "luminance": 0.11114
}

Semantic roles & 50–950 ramp

primary
#5A40DE
secondary
#D3DE9C
accent
#ED3AD0
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A40DE

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

Preview Lab → · Contrast checker → · Palette generator →

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