#5837CC#5837CC

#5837CC is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.4% C 0.214 H 284.9°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5837CC
RGBrgb(88, 55, 204)
HSLhsl(253, 59%, 51%)
HSVhsv(253, 73%, 80%)
CMYKcmyk(56.9%, 73%, 0%, 20%)
CIE-LABlab(36.30, 52.28, -71.98)
CIE-LCHlch(36.30, 88.96, 305.99°)
OKLaboklab(47.4% 0.0552 -0.2072)
OKLCHoklch(47.4% 0.214 284.9)
XYZxyz(16.2865, 9.1657, 58.0260)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837CC #ABCC37
analogous
#3760CC #5837CC #A337CC
triadic
#5837CC #CC5837 #37CC58
tetradic
#5837CC #CC3760 #ABCC37 #37CCA3
square
#5837CC #CC3760 #ABCC37 #37CCA3
split-complementary
#5837CC #CCA337 #60CC37
monochromatic
#2E1C6D #42289E #5837CC #8168D8 #A999E5

Accessibility & contrast

On white

7.41
#5837CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5837CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837CC
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837CC#FFFFFF#000000##FFFFFF
##5837CC1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#1C607E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5837cc;
/* rgb */ color: rgb(88, 55, 204);
/* oklch */ color: oklch(47.4% 0.214 284.9);
Tailwind
colors: {
  custom: {
    50: '#9371dd',
    500: '#5837cc',
    950: '#000000',
  },
}
SCSS
$custom: #5837cc;
$custom-light: #9371dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5837cc",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 253.289,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47395,
    "c": 0.21446,
    "h": 284.9
  },
  "luminance": 0.09167
}

Semantic roles & 50–950 ramp

primary
#5837CC
secondary
#C2D08E
accent
#E345C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5837CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5837CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva