#5939B4#5939B4

#5939B4 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.184 H 288.9°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5939B4
RGBrgb(89, 57, 180)
HSLhsl(256, 52%, 46%)
HSVhsv(256, 68%, 71%)
CMYKcmyk(50.6%, 68.3%, 0%, 29.4%)
CIE-LABlab(34.69, 44.42, -60.53)
CIE-LCHlch(34.69, 75.08, 306.27°)
OKLaboklab(45.63% 0.0596 -0.1736)
OKLCHoklch(45.63% 0.184 288.9)
XYZxyz(13.8188, 8.3448, 44.0537)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939B4 #94B439
analogous
#3957B4 #5939B4 #9739B4
triadic
#5939B4 #B45939 #39B459
tetradic
#5939B4 #B43957 #94B439 #39B497
square
#5939B4 #B43957 #94B439 #39B497
split-complementary
#5939B4 #B49739 #57B439
monochromatic
#2B1C57 #422A86 #5939B4 #7B5ECC #A18DDB

Accessibility & contrast

On white

7.87
#5939B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5939B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5939B4#FFFFFF#000000##FFFFFF
##5939B41.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#395872
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5939b4;
/* rgb */ color: rgb(89, 57, 180);
/* oklch */ color: oklch(45.6% 0.184 288.9);
Tailwind
colors: {
  custom: {
    50: '#9072cb',
    500: '#5939b4',
    950: '#000000',
  },
}
SCSS
$custom: #5939b4;
$custom-light: #9072cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5939b4",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 255.61,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4563,
    "c": 0.18358,
    "h": 288.9
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#5939B4
secondary
#B4C583
accent
#DB4CB6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5939B4

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

Preview Lab → · Contrast checker → · Palette generator →

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