#5939C8#5939C8

#5939C8 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.4% C 0.208 H 285.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5939C8
RGBrgb(89, 57, 200)
HSLhsl(253, 57%, 50%)
HSVhsv(253, 72%, 78%)
CMYKcmyk(55.5%, 71.5%, 0%, 21.6%)
CIE-LABlab(36.40, 50.23, -69.48)
CIE-LCHlch(36.40, 85.73, 305.87°)
OKLaboklab(47.38% 0.0559 -0.1999)
OKLCHoklch(47.38% 0.208 285.6)
XYZxyz(16.0051, 9.2193, 55.5685)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939C8 #A8C839
analogous
#3960C8 #5939C8 #A139C8
triadic
#5939C8 #C85939 #39C859
tetradic
#5939C8 #C83960 #A8C839 #39C8A1
square
#5939C8 #C83960 #A8C839 #39C8A1
split-complementary
#5939C8 #C8A139 #60C839
monochromatic
#2E1D69 #432B99 #5939C8 #8169D5 #A999E3

Accessibility & contrast

On white

7.38
#5939C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5939C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5939C8
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939C8#FFFFFF#000000##FFFFFF
##5939C81.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0051C5
Tritanopia (blue-blind)
#265F7D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5939c8;
/* rgb */ color: rgb(89, 57, 200);
/* oklch */ color: oklch(47.4% 0.208 285.6);
Tailwind
colors: {
  custom: {
    50: '#9372da',
    500: '#5939c8',
    950: '#000000',
  },
}
SCSS
$custom: #5939c8;
$custom-light: #9372da;
$custom-dark: #000000;
JSON
{
  "hex": "#5939c8",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 200
  },
  "hsl": {
    "h": 253.427,
    "s": 56.522,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4738,
    "c": 0.20758,
    "h": 285.6
  },
  "luminance": 0.0922
}

Semantic roles & 50–950 ramp

primary
#5939C8
secondary
#C0CE8F
accent
#E048BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5939C8

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

Preview Lab → · Contrast checker → · Palette generator →

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