#5937CC#5937CC

#5937CC is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.214 H 285.3°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#5937CC
RGBrgb(89, 55, 204)
HSLhsl(254, 59%, 51%)
HSVhsv(254, 73%, 80%)
CMYKcmyk(56.4%, 73%, 0%, 20%)
CIE-LABlab(36.39, 52.42, -71.82)
CIE-LCHlch(36.39, 88.91, 306.12°)
OKLaboklab(47.48% 0.0566 -0.2068)
OKLCHoklch(47.48% 0.214 285.3)
XYZxyz(16.3818, 9.2149, 58.0305)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937CC #AACC37
analogous
#375FCC #5937CC #A337CC
triadic
#5937CC #CC5937 #37CC59
tetradic
#5937CC #CC375F #AACC37 #37CCA3
square
#5937CC #CC375F #AACC37 #37CCA3
split-complementary
#5937CC #CCA337 #5FCC37
monochromatic
#2E1C6D #43289E #5937CC #8168D8 #AA99E5

Accessibility & contrast

On white

7.39
#5937CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5937CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937CC
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937CC#FFFFFF#000000##FFFFFF
##5937CC1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#20607E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5937cc;
/* rgb */ color: rgb(89, 55, 204);
/* oklch */ color: oklch(47.5% 0.214 285.3);
Tailwind
colors: {
  custom: {
    50: '#9471dd',
    500: '#5937cc',
    950: '#000000',
  },
}
SCSS
$custom: #5937cc;
$custom-light: #9471dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5937cc",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 253.691,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47483,
    "c": 0.21436,
    "h": 285.3
  },
  "luminance": 0.09216
}

Semantic roles & 50–950 ramp

primary
#5937CC
secondary
#C1D08E
accent
#E345BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5937CC

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

Preview Lab → · Contrast checker → · Palette generator →

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