#5937B9#5937B9

#5937B9 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.192 H 288.4°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5937B9
RGBrgb(89, 55, 185)
HSLhsl(256, 54%, 47%)
HSVhsv(256, 70%, 73%)
CMYKcmyk(51.9%, 70.3%, 0%, 27.5%)
CIE-LABlab(34.72, 46.95, -63.44)
CIE-LCHlch(34.72, 78.92, 306.50°)
OKLaboklab(45.78% 0.0606 -0.1822)
OKLCHoklch(45.78% 0.192 288.4)
XYZxyz(14.2404, 8.3583, 46.7525)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937B9 #97B937
analogous
#3756B9 #5937B9 #9A37B9
triadic
#5937B9 #B95937 #37B959
tetradic
#5937B9 #B93756 #97B937 #37B99A
square
#5937B9 #B93756 #97B937 #37B99A
split-complementary
#5937B9 #B99A37 #56B937
monochromatic
#2C1B5B #42298A #5937B9 #7C5ECF #A28DDD

Accessibility & contrast

On white

7.86
#5937B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5937B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937B9
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937B9#FFFFFF#000000##FFFFFF
##5937B91.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#004EB6
Tritanopia (blue-blind)
#355974
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5937b9;
/* rgb */ color: rgb(89, 55, 185);
/* oklch */ color: oklch(45.8% 0.192 288.4);
Tailwind
colors: {
  custom: {
    50: '#9171cf',
    500: '#5937b9',
    950: '#000000',
  },
}
SCSS
$custom: #5937b9;
$custom-light: #9171cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5937b9",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 185
  },
  "hsl": {
    "h": 255.692,
    "s": 54.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4578,
    "c": 0.192,
    "h": 288.4
  },
  "luminance": 0.08359
}

Semantic roles & 50–950 ramp

primary
#5937B9
secondary
#B6C884
accent
#DE4AB7
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5937B9

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

Preview Lab → · Contrast checker → · Palette generator →

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