#5837C3#5837C3

#5837C3 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.204 H 286.3°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5837C3
RGBrgb(88, 55, 195)
HSLhsl(254, 56%, 49%)
HSVhsv(254, 72%, 76%)
CMYKcmyk(54.9%, 71.8%, 0%, 23.5%)
CIE-LABlab(35.49, 49.68, -68.06)
CIE-LCHlch(35.49, 84.26, 306.13°)
OKLaboklab(46.57% 0.0571 -0.1958)
OKLCHoklch(46.57% 0.204 286.3)
XYZxyz(15.2381, 8.7464, 52.5045)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837C3 #A2C337
analogous
#375CC3 #5837C3 #9E37C3
triadic
#5837C3 #C35837 #37C358
tetradic
#5837C3 #C3375C #A2C337 #37C39E
square
#5837C3 #C3375C #A2C337 #37C39E
split-complementary
#5837C3 #C39E37 #5CC337
monochromatic
#2D1C64 #422A93 #5837C3 #7E64D3 #A694E1

Accessibility & contrast

On white

7.64
#5837C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5837C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837C3
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837C3#FFFFFF#000000##FFFFFF
##5837C31.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C7
Deuteranopia (green-blind)
#004FC0
Tritanopia (blue-blind)
#295D79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5837c3;
/* rgb */ color: rgb(88, 55, 195);
/* oklch */ color: oklch(46.6% 0.204 286.3);
Tailwind
colors: {
  custom: {
    50: '#9271d6',
    500: '#5837c3',
    950: '#000000',
  },
}
SCSS
$custom: #5837c3;
$custom-light: #9271d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5837c3",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 195
  },
  "hsl": {
    "h": 254.143,
    "s": 56,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46574,
    "c": 0.20393,
    "h": 286.3
  },
  "luminance": 0.08747
}

Semantic roles & 50–950 ramp

primary
#5837C3
secondary
#BCCC8A
accent
#DF49BC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5837C3

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

Preview Lab → · Contrast checker → · Palette generator →

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