#5939BA#5939BA

#5939BA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.191 H 287.9°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5939BA
RGBrgb(89, 57, 186)
HSLhsl(255, 53%, 48%)
HSVhsv(255, 69%, 73%)
CMYKcmyk(52.2%, 69.4%, 0%, 27.1%)
CIE-LABlab(35.19, 46.16, -63.26)
CIE-LCHlch(35.19, 78.31, 306.12°)
OKLaboklab(46.14% 0.0586 -0.1817)
OKLCHoklch(46.14% 0.191 287.9)
XYZxyz(14.4433, 8.5946, 47.3427)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939BA #9ABA39
analogous
#3959BA #5939BA #9A39BA
triadic
#5939BA #BA5939 #39BA59
tetradic
#5939BA #BA3959 #9ABA39 #39BA9A
square
#5939BA #BA3959 #9ABA39 #39BA9A
split-complementary
#5939BA #BA9A39 #59BA39
monochromatic
#2C1C5C #432B8B #5939BA #7D61CF #A390DD

Accessibility & contrast

On white

7.72
#5939BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5939BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5939BA#FFFFFF#000000##FFFFFF
##5939BA1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#345A75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5939ba;
/* rgb */ color: rgb(89, 57, 186);
/* oklch */ color: oklch(46.1% 0.191 287.9);
Tailwind
colors: {
  custom: {
    50: '#9172d0',
    500: '#5939ba',
    950: '#000000',
  },
}
SCSS
$custom: #5939ba;
$custom-light: #9172d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5939ba",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 186
  },
  "hsl": {
    "h": 254.884,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46144,
    "c": 0.19087,
    "h": 287.9
  },
  "luminance": 0.08595
}

Semantic roles & 50–950 ramp

primary
#5939BA
secondary
#B8C887
accent
#DC4BB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5939BA

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

Preview Lab → · Contrast checker → · Palette generator →

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