#5937AF#5937AF

#5937AF is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.9% C 0.180 H 290.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5937AF
RGBrgb(89, 55, 175)
HSLhsl(257, 52%, 45%)
HSVhsv(257, 69%, 69%)
CMYKcmyk(49.1%, 68.6%, 0%, 31.4%)
CIE-LABlab(33.88, 44.07, -58.88)
CIE-LCHlch(33.88, 73.54, 306.82°)
OKLaboklab(44.92% 0.0623 -0.1688)
OKLCHoklch(44.92% 0.18 290.3)
XYZxyz(13.2217, 7.9508, 41.3871)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937AF #8DAF37
analogous
#3751AF #5937AF #9537AF
triadic
#5937AF #AF5937 #37AF59
tetradic
#5937AF #AF3751 #8DAF37 #37AF95
square
#5937AF #AF3751 #8DAF37 #37AF95
split-complementary
#5937AF #AF9537 #51AF37
monochromatic
#2A1A52 #412880 #5937AF #7959CB #9E87D9

Accessibility & contrast

On white

8.11
#5937AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5937AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937AF
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937AF#FFFFFF#000000##FFFFFF
##5937AF1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#3C556E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5937af;
/* rgb */ color: rgb(89, 55, 175);
/* oklch */ color: oklch(44.9% 0.180 290.3);
Tailwind
colors: {
  custom: {
    50: '#9070c8',
    500: '#5937af',
    950: '#000000',
  },
}
SCSS
$custom: #5937af;
$custom-light: #9070c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5937af",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 257,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44921,
    "c": 0.17993,
    "h": 290.3
  },
  "luminance": 0.07951
}

Semantic roles & 50–950 ramp

primary
#5937AF
secondary
#B0C37F
accent
#DC4CB3
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5937AF

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

Preview Lab → · Contrast checker → · Palette generator →

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