#5937AB#5937AB

#5937AB is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.6% C 0.175 H 291.1°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#5937AB
RGBrgb(89, 55, 171)
HSLhsl(258, 51%, 44%)
HSVhsv(258, 68%, 67%)
CMYKcmyk(48%, 67.8%, 0%, 32.9%)
CIE-LABlab(33.55, 42.92, -57.02)
CIE-LCHlch(33.55, 71.37, 306.97°)
OKLaboklab(44.59% 0.0629 -0.1633)
OKLCHoklch(44.59% 0.175 291.1)
XYZxyz(12.8346, 7.7960, 39.3487)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937AB #89AB37
analogous
#374FAB #5937AB #9337AB
triadic
#5937AB #AB5937 #37AB59
tetradic
#5937AB #AB374F #89AB37 #37AB93
square
#5937AB #AB374F #89AB37 #37AB93
split-complementary
#5937AB #AB9337 #4FAB37
monochromatic
#29194E #41287D #5937AB #7856C9 #9D85D8

Accessibility & contrast

On white

8.21
#5937AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5937AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937AB
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937AB#FFFFFF#000000##FFFFFF
##5937AB1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#3F546C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5937ab;
/* rgb */ color: rgb(89, 55, 171);
/* oklch */ color: oklch(44.6% 0.175 291.1);
Tailwind
colors: {
  custom: {
    50: '#8f70c5',
    500: '#5937ab',
    950: '#000000',
  },
}
SCSS
$custom: #5937ab;
$custom-light: #8f70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5937ab",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 257.586,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44586,
    "c": 0.17505,
    "h": 291.1
  },
  "luminance": 0.07796
}

Semantic roles & 50–950 ramp

primary
#5937AB
secondary
#ADC17C
accent
#DB4DB1
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5937AB

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

Preview Lab → · Contrast checker → · Palette generator →

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