#5939B7#5939B7

#5939B7 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.187 H 288.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5939B7
RGBrgb(89, 57, 183)
HSLhsl(255, 53%, 47%)
HSVhsv(255, 69%, 72%)
CMYKcmyk(51.4%, 68.9%, 0%, 28.2%)
CIE-LABlab(34.94, 45.29, -61.90)
CIE-LCHlch(34.94, 76.70, 306.19°)
OKLaboklab(45.89% 0.0591 -0.1777)
OKLCHoklch(45.89% 0.187 288.4)
XYZxyz(14.1277, 8.4683, 45.6807)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939B7 #97B739
analogous
#3958B7 #5939B7 #9839B7
triadic
#5939B7 #B75939 #39B759
tetradic
#5939B7 #B73958 #97B739 #39B798
square
#5939B7 #B73958 #97B739 #39B798
split-complementary
#5939B7 #B79839 #58B739
monochromatic
#2C1C5A #422A88 #5939B7 #7C60CD #A28EDC

Accessibility & contrast

On white

7.80
#5939B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5939B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5939B7#FFFFFF#000000##FFFFFF
##5939B71.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#375973
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5939b7;
/* rgb */ color: rgb(89, 57, 183);
/* oklch */ color: oklch(45.9% 0.187 288.4);
Tailwind
colors: {
  custom: {
    50: '#9172ce',
    500: '#5939b7',
    950: '#000000',
  },
}
SCSS
$custom: #5939b7;
$custom-light: #9172ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5939b7",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 255.238,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45886,
    "c": 0.18724,
    "h": 288.4
  },
  "luminance": 0.08469
}

Semantic roles & 50–950 ramp

primary
#5939B7
secondary
#B6C785
accent
#DC4CB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5939B7

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

Preview Lab → · Contrast checker → · Palette generator →

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