#5939C3#5939C3

#5939C3 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 46.9% C 0.202 H 286.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5939C3
RGBrgb(89, 57, 195)
HSLhsl(254, 55%, 49%)
HSVhsv(254, 71%, 76%)
CMYKcmyk(54.4%, 70.8%, 0%, 23.5%)
CIE-LABlab(35.96, 48.78, -67.28)
CIE-LCHlch(35.96, 83.10, 305.94°)
OKLaboklab(46.93% 0.0569 -0.1935)
OKLCHoklch(46.93% 0.202 286.4)
XYZxyz(15.4303, 8.9894, 52.5412)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939C3 #A3C339
analogous
#395EC3 #5939C3 #9E39C3
triadic
#5939C3 #C35939 #39C359
tetradic
#5939C3 #C3395E #A3C339 #39C39E
square
#5939C3 #C3395E #A3C339 #39C39E
split-complementary
#5939C3 #C39E39 #5EC339
monochromatic
#2E1D64 #432B94 #5939C3 #8067D2 #A796E0

Accessibility & contrast

On white

7.51
#5939C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5939C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5939C3
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939C3#FFFFFF#000000##FFFFFF
##5939C31.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C7
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#2C5E7A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5939c3;
/* rgb */ color: rgb(89, 57, 195);
/* oklch */ color: oklch(46.9% 0.202 286.4);
Tailwind
colors: {
  custom: {
    50: '#9272d6',
    500: '#5939c3',
    950: '#000000',
  },
}
SCSS
$custom: #5939c3;
$custom-light: #9272d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5939c3",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 195
  },
  "hsl": {
    "h": 253.913,
    "s": 54.762,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46933,
    "c": 0.20166,
    "h": 286.4
  },
  "luminance": 0.0899
}

Semantic roles & 50–950 ramp

primary
#5939C3
secondary
#BDCC8C
accent
#DE4ABC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5939C3

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

Preview Lab → · Contrast checker → · Palette generator →

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