#5937C8#5937C8

#5937C8 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.1% C 0.210 H 285.9°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#5937C8
RGBrgb(89, 55, 200)
HSLhsl(254, 57%, 50%)
HSVhsv(254, 73%, 78%)
CMYKcmyk(55.5%, 72.5%, 0%, 21.6%)
CIE-LABlab(36.03, 51.27, -70.08)
CIE-LCHlch(36.03, 86.83, 306.19°)
OKLaboklab(47.12% 0.0575 -0.2017)
OKLCHoklch(47.12% 0.21 285.9)
XYZxyz(15.9082, 9.0255, 55.5362)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937C8 #A6C837
analogous
#375DC8 #5937C8 #A237C8
triadic
#5937C8 #C85937 #37C859
tetradic
#5937C8 #C8375D #A6C837 #37C8A2
square
#5937C8 #C8375D #A6C837 #37C8A2
split-complementary
#5937C8 #C8A237 #5DC837
monochromatic
#2E1D68 #442A98 #5937C8 #8167D5 #A997E2

Accessibility & contrast

On white

7.49
#5937C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5937C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937C8
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937C8#FFFFFF#000000##FFFFFF
##5937C81.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0050C5
Tritanopia (blue-blind)
#265E7C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5937c8;
/* rgb */ color: rgb(89, 55, 200);
/* oklch */ color: oklch(47.1% 0.210 285.9);
Tailwind
colors: {
  custom: {
    50: '#9371da',
    500: '#5937c8',
    950: '#000000',
  },
}
SCSS
$custom: #5937c8;
$custom-light: #9371da;
$custom-dark: #000000;
JSON
{
  "hex": "#5937c8",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 200
  },
  "hsl": {
    "h": 254.069,
    "s": 56.863,
    "l": 50
  },
  "oklch": {
    "l": 0.47117,
    "c": 0.20971,
    "h": 285.9
  },
  "luminance": 0.09026
}

Semantic roles & 50–950 ramp

primary
#5937C8
secondary
#BFCE8D
accent
#E048BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5937C8

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

Preview Lab → · Contrast checker → · Palette generator →

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