#5837C2#5837C2

#5837C2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.5% C 0.203 H 286.4°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5837C2
RGBrgb(88, 55, 194)
HSLhsl(254, 56%, 49%)
HSVhsv(254, 72%, 76%)
CMYKcmyk(54.6%, 71.6%, 0%, 23.9%)
CIE-LABlab(35.40, 49.39, -67.62)
CIE-LCHlch(35.40, 83.73, 306.15°)
OKLaboklab(46.48% 0.0573 -0.1945)
OKLCHoklch(46.48% 0.203 286.4)
XYZxyz(15.1254, 8.7013, 51.9110)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837C2 #A1C237
analogous
#375CC2 #5837C2 #9E37C2
triadic
#5837C2 #C25837 #37C258
tetradic
#5837C2 #C2375C #A1C237 #37C29E
square
#5837C2 #C2375C #A1C237 #37C29E
split-complementary
#5837C2 #C29E37 #5CC237
monochromatic
#2D1C63 #422992 #5837C2 #7E63D3 #A593E0

Accessibility & contrast

On white

7.66
#5837C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5837C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837C2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837C2#FFFFFF#000000##FFFFFF
##5837C21.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#004FBF
Tritanopia (blue-blind)
#2A5C79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5837c2;
/* rgb */ color: rgb(88, 55, 194);
/* oklch */ color: oklch(46.5% 0.203 286.4);
Tailwind
colors: {
  custom: {
    50: '#9271d6',
    500: '#5837c2',
    950: '#000000',
  },
}
SCSS
$custom: #5837c2;
$custom-light: #9271d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5837c2",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 254.245,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46484,
    "c": 0.20275,
    "h": 286.4
  },
  "luminance": 0.08702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5837C2

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

Preview Lab → · Contrast checker → · Palette generator →

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