#5937C9#5937C9

#5937C9 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.211 H 285.8°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5937C9
RGBrgb(89, 55, 201)
HSLhsl(254, 57%, 50%)
HSVhsv(254, 73%, 79%)
CMYKcmyk(55.7%, 72.6%, 0%, 21.2%)
CIE-LABlab(36.12, 51.55, -70.52)
CIE-LCHlch(36.12, 87.35, 306.17°)
OKLaboklab(47.21% 0.0573 -0.203)
OKLCHoklch(47.21% 0.211 285.8)
XYZxyz(16.0254, 9.0724, 56.1537)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937C9 #A7C937
analogous
#375EC9 #5937C9 #A237C9
triadic
#5937C9 #C95937 #37C959
tetradic
#5937C9 #C9375E #A7C937 #37C9A2
square
#5937C9 #C9375E #A7C937 #37C9A2
split-complementary
#5937C9 #C9A237 #5EC937
monochromatic
#2E1C69 #432999 #5937C9 #8167D6 #A997E3

Accessibility & contrast

On white

7.46
#5937C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5937C9
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937C9#FFFFFF#000000##FFFFFF
##5937C91.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CD
Deuteranopia (green-blind)
#0051C6
Tritanopia (blue-blind)
#255F7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5937c9;
/* rgb */ color: rgb(89, 55, 201);
/* oklch */ color: oklch(47.2% 0.211 285.8);
Tailwind
colors: {
  custom: {
    50: '#9371db',
    500: '#5937c9',
    950: '#000000',
  },
}
SCSS
$custom: #5937c9;
$custom-light: #9371db;
$custom-dark: #000000;
JSON
{
  "hex": "#5937c9",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 201
  },
  "hsl": {
    "h": 253.973,
    "s": 57.48,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47208,
    "c": 0.21088,
    "h": 285.8
  },
  "luminance": 0.09073
}

Semantic roles & 50–950 ramp

primary
#5937C9
secondary
#BFCF8D
accent
#E147BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5937C9

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

Preview Lab → · Contrast checker → · Palette generator →

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