#5940DE#5940DE

#5940DE is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.3% C 0.226 H 281.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5940DE
RGBrgb(89, 64, 222)
HSLhsl(249, 71%, 56%)
HSVhsv(249, 71%, 87%)
CMYKcmyk(59.9%, 71.2%, 0%, 12.9%)
CIE-LABlab(39.69, 53.01, -76.78)
CIE-LCHlch(39.69, 93.30, 304.62°)
OKLaboklab(50.31% 0.0461 -0.2213)
OKLCHoklch(50.31% 0.226 281.8)
XYZxyz(19.1339, 11.0632, 70.2202)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5940DE #C5DE40
analogous
#4076DE #5940DE #A840DE
triadic
#5940DE #DE5940 #40DE59
tetradic
#5940DE #DE4076 #C5DE40 #40DEA8
square
#5940DE #DE4076 #C5DE40 #40DEA8
split-complementary
#5940DE #DEA840 #76DE40
monochromatic
#2A188B #3A21C0 #5940DE #8674E7 #B4A8F0

Accessibility & contrast

On white

6.54
#5940DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5940DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5940DE
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5940DE#FFFFFF#000000##FFFFFF
##5940DE1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5940de;
/* rgb */ color: rgb(89, 64, 222);
/* oklch */ color: oklch(50.3% 0.226 281.8);
Tailwind
colors: {
  custom: {
    50: '#9678ea',
    500: '#5940de',
    950: '#000000',
  },
}
SCSS
$custom: #5940de;
$custom-light: #9678ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5940de",
  "rgb": {
    "r": 89,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 249.494,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50312,
    "c": 0.22609,
    "h": 281.8
  },
  "luminance": 0.11065
}

Semantic roles & 50–950 ramp

primary
#5940DE
secondary
#D3DE9C
accent
#ED3AD1
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5940DE

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

Preview Lab → · Contrast checker → · Palette generator →

#5940DE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva