#5840BE#5840BE

#5840BE is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.4% C 0.187 H 285.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5840BE
RGBrgb(88, 64, 190)
HSLhsl(251, 50%, 50%)
HSVhsv(251, 66%, 75%)
CMYKcmyk(53.7%, 66.3%, 0%, 25.5%)
CIE-LABlab(36.85, 43.28, -62.90)
CIE-LCHlch(36.85, 76.35, 304.53°)
OKLaboklab(47.42% 0.0501 -0.1807)
OKLCHoklch(47.42% 0.187 285.5)
XYZxyz(15.1494, 9.4584, 49.7326)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840BE #A6BE40
analogous
#4067BE #5840BE #9740BE
triadic
#5840BE #BE5840 #40BE58
tetradic
#5840BE #BE4067 #A6BE40 #40BE97
square
#5840BE #BE4067 #A6BE40 #40BE97
split-complementary
#5840BE #BE9740 #67BE40
monochromatic
#2E2162 #433190 #5840BE #806DCE #A89BDD

Accessibility & contrast

On white

7.26
#5840BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5840BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5840BE
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840BE#FFFFFF#000000##FFFFFF
##5840BE1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC2
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#2D6079
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5840be;
/* rgb */ color: rgb(88, 64, 190);
/* oklch */ color: oklch(47.4% 0.187 285.5);
Tailwind
colors: {
  custom: {
    50: '#9176d3',
    500: '#5840be',
    950: '#000000',
  },
}
SCSS
$custom: #5840be;
$custom-light: #9176d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5840be",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 251.429,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47417,
    "c": 0.18749,
    "h": 285.5
  },
  "luminance": 0.09459
}

Semantic roles & 50–950 ramp

primary
#5840BE
secondary
#BFC990
accent
#D94FBF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5840BE

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

Preview Lab → · Contrast checker → · Palette generator →

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