#5840CA#5840CA

#5840CA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.4% C 0.202 H 283.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5840CA
RGBrgb(88, 64, 202)
HSLhsl(250, 57%, 52%)
HSVhsv(250, 68%, 79%)
CMYKcmyk(56.4%, 68.3%, 0%, 20.8%)
CIE-LABlab(37.85, 46.89, -68.27)
CIE-LCHlch(37.85, 82.83, 304.48°)
OKLaboklab(48.44% 0.0484 -0.1964)
OKLCHoklch(48.44% 0.202 283.8)
XYZxyz(16.5153, 10.0048, 56.9265)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5840CA #B2CA40
analogous
#406DCA #5840CA #9D40CA
triadic
#5840CA #CA5840 #40CA58
tetradic
#5840CA #CA406D #B2CA40 #40CA9D
square
#5840CA #CA406D #B2CA40 #40CA9D
split-complementary
#5840CA #CA9D40 #6DCA40
monochromatic
#2D1F70 #412CA0 #5840CA #8270D7 #ACA0E5

Accessibility & contrast

On white

7.00
#5840CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5840CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5840CA
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5840CA#FFFFFF#000000##FFFFFF
##5840CA1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0055C7
Tritanopia (blue-blind)
#1E6480
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5840ca;
/* rgb */ color: rgb(88, 64, 202);
/* oklch */ color: oklch(48.4% 0.202 283.8);
Tailwind
colors: {
  custom: {
    50: '#9277db',
    500: '#5840ca',
    950: '#000000',
  },
}
SCSS
$custom: #5840ca;
$custom-light: #9277db;
$custom-dark: #000000;
JSON
{
  "hex": "#5840ca",
  "rgb": {
    "r": 88,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 250.435,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48444,
    "c": 0.20231,
    "h": 283.8
  },
  "luminance": 0.10006
}

Semantic roles & 50–950 ramp

primary
#5840CA
secondary
#C7D195
accent
#E048C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5840CA

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

Preview Lab → · Contrast checker → · Palette generator →

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