#5937AD#5937AD

#5937AD is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.177 H 290.7°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#5937AD
RGBrgb(89, 55, 173)
HSLhsl(257, 52%, 45%)
HSVhsv(257, 68%, 68%)
CMYKcmyk(48.6%, 68.2%, 0%, 32.2%)
CIE-LABlab(33.72, 43.50, -57.95)
CIE-LCHlch(33.72, 72.46, 306.89°)
OKLaboklab(44.75% 0.0626 -0.1661)
OKLCHoklch(44.75% 0.177 290.7)
XYZxyz(13.0267, 7.8729, 40.3603)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937AD #8BAD37
analogous
#3750AD #5937AD #9437AD
triadic
#5937AD #AD5937 #37AD59
tetradic
#5937AD #AD3750 #8BAD37 #37AD94
square
#5937AD #AD3750 #8BAD37 #37AD94
split-complementary
#5937AD #AD9437 #50AD37
monochromatic
#291950 #41287F #5937AD #7857CA #9E86D8

Accessibility & contrast

On white

8.16
#5937AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5937AD
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937AD#FFFFFF#000000##FFFFFF
##5937AD1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5937ad;
/* rgb */ color: rgb(89, 55, 173);
/* oklch */ color: oklch(44.8% 0.177 290.7);
Tailwind
colors: {
  custom: {
    50: '#8f70c6',
    500: '#5937ad',
    950: '#000000',
  },
}
SCSS
$custom: #5937ad;
$custom-light: #8f70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5937ad",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 173
  },
  "hsl": {
    "h": 257.288,
    "s": 51.754,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44753,
    "c": 0.17749,
    "h": 290.7
  },
  "luminance": 0.07873
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5937AD

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

Preview Lab → · Contrast checker → · Palette generator →

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