#5841CA#5841CA

#5841CA is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.6% C 0.201 H 283.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5841CA
RGBrgb(88, 65, 202)
HSLhsl(250, 56%, 52%)
HSVhsv(250, 68%, 79%)
CMYKcmyk(56.4%, 67.8%, 0%, 20.8%)
CIE-LABlab(38.05, 46.34, -67.94)
CIE-LCHlch(38.05, 82.24, 304.29°)
OKLaboklab(48.59% 0.0475 -0.1955)
OKLCHoklch(48.59% 0.201 283.7)
XYZxyz(16.5722, 10.1186, 56.9455)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841CA #B3CA41
analogous
#416ECA #5841CA #9D41CA
triadic
#5841CA #CA5841 #41CA58
tetradic
#5841CA #CA416E #B3CA41 #41CA9D
square
#5841CA #CA416E #B3CA41 #41CA9D
split-complementary
#5841CA #CA9D41 #6ECA41
monochromatic
#2D2071 #402DA1 #5841CA #8271D7 #ACA1E5

Accessibility & contrast

On white

6.94
#5841CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5841CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5841CA
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841CA#FFFFFF#000000##FFFFFF
##5841CA1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0055C7
Tritanopia (blue-blind)
#1E6480
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5841ca;
/* rgb */ color: rgb(88, 65, 202);
/* oklch */ color: oklch(48.6% 0.201 283.7);
Tailwind
colors: {
  custom: {
    50: '#9277db',
    500: '#5841ca',
    950: '#000000',
  },
}
SCSS
$custom: #5841ca;
$custom-light: #9277db;
$custom-dark: #000000;
JSON
{
  "hex": "#5841ca",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 202
  },
  "hsl": {
    "h": 250.073,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4859,
    "c": 0.20115,
    "h": 283.7
  },
  "luminance": 0.1012
}

Semantic roles & 50–950 ramp

primary
#5841CA
secondary
#C7D196
accent
#E048C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5841CA

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

Preview Lab → · Contrast checker → · Palette generator →

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