#5939C5#5939C5

#5939C5 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.1% C 0.204 H 286.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5939C5
RGBrgb(89, 57, 197)
HSLhsl(254, 55%, 50%)
HSVhsv(254, 71%, 77%)
CMYKcmyk(54.8%, 71.1%, 0%, 22.7%)
CIE-LABlab(36.14, 49.36, -68.16)
CIE-LCHlch(36.14, 84.16, 305.91°)
OKLaboklab(47.11% 0.0565 -0.1961)
OKLCHoklch(47.11% 0.204 286.1)
XYZxyz(15.6580, 9.0805, 53.7401)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939C5 #A5C539
analogous
#395FC5 #5939C5 #9F39C5
triadic
#5939C5 #C55939 #39C559
tetradic
#5939C5 #C5395F #A5C539 #39C59F
square
#5939C5 #C5395F #A5C539 #39C59F
split-complementary
#5939C5 #C59F39 #5FC539
monochromatic
#2E1E66 #442B96 #5939C5 #8068D3 #A897E1

Accessibility & contrast

On white

7.46
#5939C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5939C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5939C5#FFFFFF#000000##FFFFFF
##5939C51.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#0051C2
Tritanopia (blue-blind)
#295E7B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5939c5;
/* rgb */ color: rgb(89, 57, 197);
/* oklch */ color: oklch(47.1% 0.204 286.1);
Tailwind
colors: {
  custom: {
    50: '#9372d8',
    500: '#5939c5',
    950: '#000000',
  },
}
SCSS
$custom: #5939c5;
$custom-light: #9372d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5939c5",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 197
  },
  "hsl": {
    "h": 253.714,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47111,
    "c": 0.20404,
    "h": 286.1
  },
  "luminance": 0.09081
}

Semantic roles & 50–950 ramp

primary
#5939C5
secondary
#BECD8D
accent
#DE49BC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5939C5

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

Preview Lab → · Contrast checker → · Palette generator →

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