#5841CB#5841CB

#5841CB is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.7% C 0.202 H 283.5°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5841CB
RGBrgb(88, 65, 203)
HSLhsl(250, 57%, 53%)
HSVhsv(250, 68%, 80%)
CMYKcmyk(56.7%, 68%, 0%, 20.4%)
CIE-LABlab(38.14, 46.64, -68.38)
CIE-LCHlch(38.14, 82.77, 304.29°)
OKLaboklab(48.68% 0.0474 -0.1968)
OKLCHoklch(48.68% 0.202 283.5)
XYZxyz(16.6910, 10.1661, 57.5711)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5841CB #B4CB41
analogous
#416FCB #5841CB #9D41CB
triadic
#5841CB #CB5841 #41CB58
tetradic
#5841CB #CB416F #B4CB41 #41CB9D
square
#5841CB #CB416F #B4CB41 #41CB9D
split-complementary
#5841CB #CB9D41 #6FCB41
monochromatic
#2D1F72 #402CA2 #5841CB #8271D8 #ACA1E5

Accessibility & contrast

On white

6.92
#5841CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5841CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5841CB
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5841CB#FFFFFF#000000##FFFFFF
##5841CB1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#1C6581
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5841cb;
/* rgb */ color: rgb(88, 65, 203);
/* oklch */ color: oklch(48.7% 0.202 283.5);
Tailwind
colors: {
  custom: {
    50: '#9377dc',
    500: '#5841cb',
    950: '#000000',
  },
}
SCSS
$custom: #5841cb;
$custom-light: #9377dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5841cb",
  "rgb": {
    "r": 88,
    "g": 65,
    "b": 203
  },
  "hsl": {
    "h": 250,
    "s": 57.025,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48677,
    "c": 0.20238,
    "h": 283.5
  },
  "luminance": 0.10167
}

Semantic roles & 50–950 ramp

primary
#5841CB
secondary
#C8D296
accent
#E048C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5841CB

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

Preview Lab → · Contrast checker → · Palette generator →

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