#5837C9#5837C9

#5837C9 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.1% C 0.211 H 285.3°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#5837C9
RGBrgb(88, 55, 201)
HSLhsl(254, 57%, 50%)
HSVhsv(254, 73%, 79%)
CMYKcmyk(56.2%, 72.6%, 0%, 21.2%)
CIE-LABlab(36.03, 51.41, -70.68)
CIE-LCHlch(36.03, 87.40, 306.03°)
OKLaboklab(47.12% 0.0558 -0.2034)
OKLCHoklch(47.12% 0.211 285.3)
XYZxyz(15.9301, 9.0232, 56.1493)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837C9 #A8C937
analogous
#375FC9 #5837C9 #A137C9
triadic
#5837C9 #C95837 #37C958
tetradic
#5837C9 #C9375F #A8C937 #37C9A1
square
#5837C9 #C9375F #A8C937 #37C9A1
split-complementary
#5837C9 #C9A137 #5FC937
monochromatic
#2E1C69 #432999 #5837C9 #8067D6 #A897E3

Accessibility & contrast

On white

7.49
#5837C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5837C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837C9
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837C9#FFFFFF#000000##FFFFFF
##5837C91.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CD
Deuteranopia (green-blind)
#0050C6
Tritanopia (blue-blind)
#215F7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5837c9;
/* rgb */ color: rgb(88, 55, 201);
/* oklch */ color: oklch(47.1% 0.211 285.3);
Tailwind
colors: {
  custom: {
    50: '#9371db',
    500: '#5837c9',
    950: '#000000',
  },
}
SCSS
$custom: #5837c9;
$custom-light: #9371db;
$custom-dark: #000000;
JSON
{
  "hex": "#5837c9",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 201
  },
  "hsl": {
    "h": 253.562,
    "s": 57.48,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47119,
    "c": 0.21097,
    "h": 285.3
  },
  "luminance": 0.09024
}

Semantic roles & 50–950 ramp

primary
#5837C9
secondary
#C0CF8D
accent
#E147BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5837C9

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

Preview Lab → · Contrast checker → · Palette generator →

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