#5939AA#5939AA

#5939AA is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.8% C 0.171 H 290.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5939AA
RGBrgb(89, 57, 170)
HSLhsl(257, 50%, 45%)
HSVhsv(257, 66%, 67%)
CMYKcmyk(47.6%, 66.5%, 0%, 33.3%)
CIE-LABlab(33.88, 41.52, -55.89)
CIE-LCHlch(33.88, 69.62, 306.61°)
OKLaboklab(44.8% 0.061 -0.16)
OKLCHoklch(44.8% 0.171 290.9)
XYZxyz(12.8366, 7.9519, 38.8809)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939AA #8AAA39
analogous
#3952AA #5939AA #9239AA
triadic
#5939AA #AA5939 #39AA59
tetradic
#5939AA #AA3952 #8AAA39 #39AA92
square
#5939AA #AA3952 #8AAA39 #39AA92
split-complementary
#5939AA #AA9239 #52AA39
monochromatic
#291A4E #412A7C #5939AA #7859C7 #9D87D7

Accessibility & contrast

On white

8.11
#5939AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5939AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5939AA#FFFFFF#000000##FFFFFF
##5939AA1.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)
#0052AD
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#3F546C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5939aa;
/* rgb */ color: rgb(89, 57, 170);
/* oklch */ color: oklch(44.8% 0.171 290.9);
Tailwind
colors: {
  custom: {
    50: '#8f71c4',
    500: '#5939aa',
    950: '#000000',
  },
}
SCSS
$custom: #5939aa;
$custom-light: #8f71c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5939aa",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 170
  },
  "hsl": {
    "h": 256.991,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44797,
    "c": 0.17125,
    "h": 290.9
  },
  "luminance": 0.07952
}

Semantic roles & 50–950 ramp

primary
#5939AA
secondary
#AEC17E
accent
#D94EB2
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5939AA

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

Preview Lab → · Contrast checker → · Palette generator →

#5939AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva