#5937AC#5937AC

#5937AC is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.176 H 290.9°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5937AC
RGBrgb(89, 55, 172)
HSLhsl(257, 52%, 45%)
HSVhsv(257, 68%, 67%)
CMYKcmyk(48.3%, 68%, 0%, 32.5%)
CIE-LABlab(33.64, 43.21, -57.49)
CIE-LCHlch(33.64, 71.91, 306.93°)
OKLaboklab(44.67% 0.0628 -0.1647)
OKLCHoklch(44.67% 0.176 290.9)
XYZxyz(12.9303, 7.8343, 39.8526)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937AC #8AAC37
analogous
#3750AC #5937AC #9437AC
triadic
#5937AC #AC5937 #37AC59
tetradic
#5937AC #AC3750 #8AAC37 #37AC94
square
#5937AC #AC3750 #8AAC37 #37AC94
split-complementary
#5937AC #AC9437 #50AC37
monochromatic
#29194F #41287E #5937AC #7857C9 #9D85D8

Accessibility & contrast

On white

8.18
#5937AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5937AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937AC
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937AC#FFFFFF#000000##FFFFFF
##5937AC1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#004CAA
Tritanopia (blue-blind)
#3E546D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5937ac;
/* rgb */ color: rgb(89, 55, 172);
/* oklch */ color: oklch(44.7% 0.176 290.9);
Tailwind
colors: {
  custom: {
    50: '#8f70c6',
    500: '#5937ac',
    950: '#000000',
  },
}
SCSS
$custom: #5937ac;
$custom-light: #8f70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5937ac",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 257.436,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44669,
    "c": 0.17627,
    "h": 290.9
  },
  "luminance": 0.07835
}

Semantic roles & 50–950 ramp

primary
#5937AC
secondary
#AEC27D
accent
#DB4DB2
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5937AC

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

Preview Lab → · Contrast checker → · Palette generator →

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