#5939CA#5939CA

#5939CA is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.6% C 0.210 H 285.3°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5939CA
RGBrgb(89, 57, 202)
HSLhsl(253, 58%, 51%)
HSVhsv(253, 72%, 79%)
CMYKcmyk(55.9%, 71.8%, 0%, 20.8%)
CIE-LABlab(36.58, 50.81, -70.35)
CIE-LCHlch(36.58, 86.78, 305.84°)
OKLaboklab(47.56% 0.0555 -0.2025)
OKLCHoklch(47.56% 0.21 285.3)
XYZxyz(16.2404, 9.3134, 56.8076)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939CA #AACA39
analogous
#3961CA #5939CA #A139CA
triadic
#5939CA #CA5939 #39CA59
tetradic
#5939CA #CA3961 #AACA39 #39CAA1
square
#5939CA #CA3961 #AACA39 #39CAA1
split-complementary
#5939CA #CAA139 #61CA39
monochromatic
#2E1D6C #432A9C #5939CA #8169D7 #AA9AE4

Accessibility & contrast

On white

7.34
#5939CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5939CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5939CA
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939CA#FFFFFF#000000##FFFFFF
##5939CA1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0052C7
Tritanopia (blue-blind)
#23607E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5939ca;
/* rgb */ color: rgb(89, 57, 202);
/* oklch */ color: oklch(47.6% 0.210 285.3);
Tailwind
colors: {
  custom: {
    50: '#9372db',
    500: '#5939ca',
    950: '#000000',
  },
}
SCSS
$custom: #5939ca;
$custom-light: #9372db;
$custom-dark: #000000;
JSON
{
  "hex": "#5939ca",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 202
  },
  "hsl": {
    "h": 253.241,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.4756,
    "c": 0.20993,
    "h": 285.3
  },
  "luminance": 0.09314
}

Semantic roles & 50–950 ramp

primary
#5939CA
secondary
#C1D08F
accent
#E147BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5939CA

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

Preview Lab → · Contrast checker → · Palette generator →

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