#5837C1#5837C1

#5837C1 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.4% C 0.202 H 286.6°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5837C1
RGBrgb(88, 55, 193)
HSLhsl(254, 56%, 49%)
HSVhsv(254, 72%, 76%)
CMYKcmyk(54.4%, 71.5%, 0%, 24.3%)
CIE-LABlab(35.31, 49.10, -67.17)
CIE-LCHlch(35.31, 83.21, 306.16°)
OKLaboklab(46.39% 0.0575 -0.1932)
OKLCHoklch(46.39% 0.202 286.6)
XYZxyz(15.0135, 8.6565, 51.3215)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837C1 #A0C137
analogous
#375BC1 #5837C1 #9D37C1
triadic
#5837C1 #C15837 #37C158
tetradic
#5837C1 #C1375B #A0C137 #37C19D
square
#5837C1 #C1375B #A0C137 #37C19D
split-complementary
#5837C1 #C19D37 #5BC137
monochromatic
#2D1C62 #422991 #5837C1 #7D63D2 #A592E0

Accessibility & contrast

On white

7.69
#5837C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5837C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837C1
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837C1#FFFFFF#000000##FFFFFF
##5837C11.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C5
Deuteranopia (green-blind)
#004FBE
Tritanopia (blue-blind)
#2B5C78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5837c1;
/* rgb */ color: rgb(88, 55, 193);
/* oklch */ color: oklch(46.4% 0.202 286.6);
Tailwind
colors: {
  custom: {
    50: '#9271d5',
    500: '#5837c1',
    950: '#000000',
  },
}
SCSS
$custom: #5837c1;
$custom-light: #9271d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5837c1",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 193
  },
  "hsl": {
    "h": 254.348,
    "s": 55.645,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46394,
    "c": 0.20158,
    "h": 286.6
  },
  "luminance": 0.08657
}

Semantic roles & 50–950 ramp

primary
#5837C1
secondary
#BBCB89
accent
#DF49BB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5837C1

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

Preview Lab → · Contrast checker → · Palette generator →

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