#5837CF#5837CF

#5837CF is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.218 H 284.5°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5837CF
RGBrgb(88, 55, 207)
HSLhsl(253, 61%, 51%)
HSVhsv(253, 73%, 81%)
CMYKcmyk(57.5%, 73.4%, 0%, 18.8%)
CIE-LABlab(36.58, 53.14, -73.26)
CIE-LCHlch(36.58, 90.51, 305.96°)
OKLaboklab(47.67% 0.0545 -0.211)
OKLCHoklch(47.67% 0.218 284.5)
XYZxyz(16.6497, 9.3110, 59.9393)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837CF #AECF37
analogous
#3762CF #5837CF #A437CF
triadic
#5837CF #CF5837 #37CF58
tetradic
#5837CF #CF3762 #AECF37 #37CFA4
square
#5837CF #CF3762 #AECF37 #37CFA4
split-complementary
#5837CF #CFA437 #62CF37
monochromatic
#2E1B71 #4227A2 #5837CF #8168DB #AA9AE7

Accessibility & contrast

On white

7.34
#5837CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5837CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837CF
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837CF#FFFFFF#000000##FFFFFF
##5837CF1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#166180
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5837cf;
/* rgb */ color: rgb(88, 55, 207);
/* oklch */ color: oklch(47.7% 0.218 284.5);
Tailwind
colors: {
  custom: {
    50: '#9471df',
    500: '#5837cf',
    950: '#000000',
  },
}
SCSS
$custom: #5837cf;
$custom-light: #9471df;
$custom-dark: #000000;
JSON
{
  "hex": "#5837cf",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 207
  },
  "hsl": {
    "h": 253.026,
    "s": 61.29,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47672,
    "c": 0.21793,
    "h": 284.5
  },
  "luminance": 0.09312
}

Semantic roles & 50–950 ramp

primary
#5837CF
secondary
#C4D28F
accent
#E443C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5837CF

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

Preview Lab → · Contrast checker → · Palette generator →

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