#5939AD#5939AD

#5939AD is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.0% C 0.175 H 290.3°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5939AD
RGBrgb(89, 57, 173)
HSLhsl(257, 50%, 45%)
HSVhsv(257, 67%, 68%)
CMYKcmyk(48.6%, 67.1%, 0%, 32.2%)
CIE-LABlab(34.12, 42.39, -57.29)
CIE-LCHlch(34.12, 71.27, 306.50°)
OKLaboklab(45.04% 0.0606 -0.1641)
OKLCHoklch(45.04% 0.175 290.3)
XYZxyz(13.1236, 8.0667, 40.3926)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939AD #8DAD39
analogous
#3953AD #5939AD #9339AD
triadic
#5939AD #AD5939 #39AD59
tetradic
#5939AD #AD3953 #8DAD39 #39AD93
square
#5939AD #AD3953 #8DAD39 #39AD93
split-complementary
#5939AD #AD9339 #53AD39
monochromatic
#2A1B51 #412A7F #5939AD #795AC9 #9E88D8

Accessibility & contrast

On white

8.04
#5939AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5939AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5939AD#FFFFFF#000000##FFFFFF
##5939AD1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#004EAB
Tritanopia (blue-blind)
#3E556E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5939ad;
/* rgb */ color: rgb(89, 57, 173);
/* oklch */ color: oklch(45.0% 0.175 290.3);
Tailwind
colors: {
  custom: {
    50: '#8f71c6',
    500: '#5939ad',
    950: '#000000',
  },
}
SCSS
$custom: #5939ad;
$custom-light: #8f71c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5939ad",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 173
  },
  "hsl": {
    "h": 256.552,
    "s": 50.435,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45044,
    "c": 0.17498,
    "h": 290.3
  },
  "luminance": 0.08067
}

Semantic roles & 50–950 ramp

primary
#5939AD
secondary
#B0C280
accent
#DA4EB3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5939AD

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

Preview Lab → · Contrast checker → · Palette generator →

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