#5937C1#5937C1

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

Color values

HEX#5937C1
RGBrgb(89, 55, 193)
HSLhsl(255, 56%, 49%)
HSVhsv(255, 72%, 76%)
CMYKcmyk(53.9%, 71.5%, 0%, 24.3%)
CIE-LABlab(35.41, 49.25, -67.01)
CIE-LCHlch(35.41, 83.17, 306.32°)
OKLaboklab(46.49% 0.059 -0.1927)
OKLCHoklch(46.49% 0.202 287)
XYZxyz(15.1088, 8.7057, 51.3260)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937C1 #9FC137
analogous
#375AC1 #5937C1 #9E37C1
triadic
#5937C1 #C15937 #37C159
tetradic
#5937C1 #C1375A #9FC137 #37C19E
square
#5937C1 #C1375A #9FC137 #37C19E
split-complementary
#5937C1 #C19E37 #5AC137
monochromatic
#2D1C62 #432991 #5937C1 #7E63D2 #A592E0

Accessibility & contrast

On white

7.66
#5937C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5937C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937C1
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937C1#FFFFFF#000000##FFFFFF
##5937C11.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)
#0057C5
Deuteranopia (green-blind)
#004FBE
Tritanopia (blue-blind)
#2E5C78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5937c1;
/* rgb */ color: rgb(89, 55, 193);
/* oklch */ color: oklch(46.5% 0.202 287.0);
Tailwind
colors: {
  custom: {
    50: '#9271d5',
    500: '#5937c1',
    950: '#000000',
  },
}
SCSS
$custom: #5937c1;
$custom-light: #9271d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5937c1",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 193
  },
  "hsl": {
    "h": 254.783,
    "s": 55.645,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46486,
    "c": 0.2015,
    "h": 287
  },
  "luminance": 0.08706
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5937C1

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

Preview Lab → · Contrast checker → · Palette generator →

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