#5840D7#5840D7

#5840D7 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.6% C 0.218 H 282.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5840D7
RGBrgb(88, 64, 215)
HSLhsl(250, 65%, 55%)
HSVhsv(250, 70%, 84%)
CMYKcmyk(59.1%, 70.2%, 0%, 15.7%)
CIE-LABlab(38.98, 50.79, -73.94)
CIE-LCHlch(38.98, 89.70, 304.49°)
OKLaboklab(49.6% 0.0461 -0.213)
OKLCHoklch(49.6% 0.218 282.2)
XYZxyz(18.1198, 10.6466, 65.3770)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840D7 #BFD740
analogous
#4074D7 #5840D7 #A340D7
triadic
#5840D7 #D75840 #40D758
tetradic
#5840D7 #D74074 #BFD740 #40D7A3
square
#5840D7 #D74074 #BFD740 #40D7A3
split-complementary
#5840D7 #D7A340 #74D740
monochromatic
#2B1B81 #3C26B4 #5840D7 #8473E2 #B0A5EC

Accessibility & contrast

On white

6.71
#5840D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5840D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840D7
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840D7#FFFFFF#000000##FFFFFF
##5840D71.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DC
Deuteranopia (green-blind)
#0056D4
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5840d7;
/* rgb */ color: rgb(88, 64, 215);
/* oklch */ color: oklch(49.6% 0.218 282.2);
Tailwind
colors: {
  custom: {
    50: '#9577e5',
    500: '#5840d7',
    950: '#000000',
  },
}
SCSS
$custom: #5840d7;
$custom-light: #9577e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5840d7",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 249.536,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49597,
    "c": 0.21797,
    "h": 282.2
  },
  "luminance": 0.10648
}

Semantic roles & 50–950 ramp

primary
#5840D7
secondary
#CFD99A
accent
#E83FCD
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5840D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5840D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva