#5937CA#5937CA

#5937CA is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.212 H 285.6°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#5937CA
RGBrgb(89, 55, 202)
HSLhsl(254, 58%, 50%)
HSVhsv(254, 73%, 79%)
CMYKcmyk(55.9%, 72.8%, 0%, 20.8%)
CIE-LABlab(36.21, 51.84, -70.95)
CIE-LCHlch(36.21, 87.87, 306.15°)
OKLaboklab(47.3% 0.057 -0.2042)
OKLCHoklch(47.3% 0.212 285.6)
XYZxyz(16.1435, 9.1196, 56.7753)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937CA #A8CA37
analogous
#375ECA #5937CA #A337CA
triadic
#5937CA #CA5937 #37CA59
tetradic
#5937CA #CA375E #A8CA37 #37CAA3
square
#5937CA #CA375E #A8CA37 #37CAA3
split-complementary
#5937CA #CAA337 #5ECA37
monochromatic
#2E1C6A #43299B #5937CA #8167D7 #A998E4

Accessibility & contrast

On white

7.44
#5937CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5937CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937CA
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937CA#FFFFFF#000000##FFFFFF
##5937CA1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#235F7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5937ca;
/* rgb */ color: rgb(89, 55, 202);
/* oklch */ color: oklch(47.3% 0.212 285.6);
Tailwind
colors: {
  custom: {
    50: '#9471db',
    500: '#5937ca',
    950: '#000000',
  },
}
SCSS
$custom: #5937ca;
$custom-light: #9471db;
$custom-dark: #000000;
JSON
{
  "hex": "#5937ca",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 202
  },
  "hsl": {
    "h": 253.878,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.473,
    "c": 0.21204,
    "h": 285.6
  },
  "luminance": 0.0912
}

Semantic roles & 50–950 ramp

primary
#5937CA
secondary
#C0CF8E
accent
#E146BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5937CA

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

Preview Lab → · Contrast checker → · Palette generator →

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