#5837D2#5837D2

#5837D2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.221 H 284.1°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5837D2
RGBrgb(88, 55, 210)
HSLhsl(253, 63%, 52%)
HSVhsv(253, 74%, 82%)
CMYKcmyk(58.1%, 73.8%, 0%, 17.6%)
CIE-LABlab(36.85, 54.01, -74.54)
CIE-LCHlch(36.85, 92.05, 305.92°)
OKLaboklab(47.95% 0.0538 -0.2148)
OKLCHoklch(47.95% 0.221 284.1)
XYZxyz(17.0200, 9.4591, 61.8892)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837D2 #B1D237
analogous
#3764D2 #5837D2 #A537D2
triadic
#5837D2 #D25837 #37D258
tetradic
#5837D2 #D23764 #B1D237 #37D2A5
square
#5837D2 #D23764 #B1D237 #37D2A5
split-complementary
#5837D2 #D2A537 #64D237
monochromatic
#2D1A74 #4125A6 #5837D2 #8269DD #AB9BE8

Accessibility & contrast

On white

7.26
#5837D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5837D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837D2
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837D2#FFFFFF#000000##FFFFFF
##5837D21.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD6
Deuteranopia (green-blind)
#0052CF
Tritanopia (blue-blind)
#0E6282
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5837d2;
/* rgb */ color: rgb(88, 55, 210);
/* oklch */ color: oklch(48.0% 0.221 284.1);
Tailwind
colors: {
  custom: {
    50: '#9472e1',
    500: '#5837d2',
    950: '#000000',
  },
}
SCSS
$custom: #5837d2;
$custom-light: #9472e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5837d2",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 210
  },
  "hsl": {
    "h": 252.774,
    "s": 63.265,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47952,
    "c": 0.2214,
    "h": 284.1
  },
  "luminance": 0.0946
}

Semantic roles & 50–950 ramp

primary
#5837D2
secondary
#C6D490
accent
#E641C3
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0815
muted
#7E7B84

Preview Lab

Preview with #5837D2

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

Preview Lab → · Contrast checker → · Palette generator →

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