#5937C2#5937C2

#5937C2 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.6% C 0.203 H 286.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5937C2
RGBrgb(89, 55, 194)
HSLhsl(255, 56%, 49%)
HSVhsv(255, 72%, 76%)
CMYKcmyk(54.1%, 71.6%, 0%, 23.9%)
CIE-LABlab(35.50, 49.54, -67.45)
CIE-LCHlch(35.50, 83.69, 306.29°)
OKLaboklab(46.58% 0.0588 -0.194)
OKLCHoklch(46.58% 0.203 286.9)
XYZxyz(15.2207, 8.7505, 51.9155)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937C2 #A0C237
analogous
#375BC2 #5937C2 #9F37C2
triadic
#5937C2 #C25937 #37C259
tetradic
#5937C2 #C2375B #A0C237 #37C29F
square
#5937C2 #C2375B #A0C237 #37C29F
split-complementary
#5937C2 #C29F37 #5BC237
monochromatic
#2D1C63 #432992 #5937C2 #7F63D3 #A693E0

Accessibility & contrast

On white

7.64
#5937C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5937C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937C2
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937C2#FFFFFF#000000##FFFFFF
##5937C21.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)
#0057C6
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#2D5C79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5937c2;
/* rgb */ color: rgb(89, 55, 194);
/* oklch */ color: oklch(46.6% 0.203 286.9);
Tailwind
colors: {
  custom: {
    50: '#9271d6',
    500: '#5937c2',
    950: '#000000',
  },
}
SCSS
$custom: #5937c2;
$custom-light: #9271d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5937c2",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 254.676,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46576,
    "c": 0.20267,
    "h": 286.9
  },
  "luminance": 0.08751
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5937C2

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

Preview Lab → · Contrast checker → · Palette generator →

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