#5837D6#5837D6

#5837D6 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.3% C 0.226 H 283.5°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5837D6
RGBrgb(88, 55, 214)
HSLhsl(252, 66%, 53%)
HSVhsv(252, 74%, 84%)
CMYKcmyk(58.9%, 74.3%, 0%, 16.1%)
CIE-LABlab(37.23, 55.15, -76.24)
CIE-LCHlch(37.23, 94.10, 305.88°)
OKLaboklab(48.33% 0.0528 -0.2197)
OKLCHoklch(48.33% 0.226 283.5)
XYZxyz(17.5245, 9.6610, 64.5466)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837D6 #B5D637
analogous
#3765D6 #5837D6 #A837D6
triadic
#5837D6 #D65837 #37D658
tetradic
#5837D6 #D63765 #B5D637 #37D6A8
square
#5837D6 #D63765 #B5D637 #37D6A8
split-complementary
#5837D6 #D6A837 #65D637
monochromatic
#2D197A #4023AC #5837D6 #826AE0 #AD9DEB

Accessibility & contrast

On white

7.16
#5837D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5837D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837D6
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837D6#FFFFFF#000000##FFFFFF
##5837D61.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDB
Deuteranopia (green-blind)
#0052D3
Tritanopia (blue-blind)
#006484
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5837d6;
/* rgb */ color: rgb(88, 55, 214);
/* oklch */ color: oklch(48.3% 0.226 283.5);
Tailwind
colors: {
  custom: {
    50: '#9572e4',
    500: '#5837d6',
    950: '#000000',
  },
}
SCSS
$custom: #5837d6;
$custom-light: #9572e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5837d6",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 214
  },
  "hsl": {
    "h": 252.453,
    "s": 65.975,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48328,
    "c": 0.22598,
    "h": 283.5
  },
  "luminance": 0.09662
}

Semantic roles & 50–950 ramp

primary
#5837D6
secondary
#C9D792
accent
#E93FC6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5837D6

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

Preview Lab → · Contrast checker → · Palette generator →

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