#5939B5#5939B5

#5939B5 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.7% C 0.185 H 288.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5939B5
RGBrgb(89, 57, 181)
HSLhsl(255, 52%, 47%)
HSVhsv(255, 69%, 71%)
CMYKcmyk(50.8%, 68.5%, 0%, 29%)
CIE-LABlab(34.77, 44.71, -60.98)
CIE-LCHlch(34.77, 75.62, 306.25°)
OKLaboklab(45.72% 0.0594 -0.175)
OKLCHoklch(45.72% 0.185 288.7)
XYZxyz(13.9210, 8.3857, 44.5922)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939B5 #95B539
analogous
#3957B5 #5939B5 #9739B5
triadic
#5939B5 #B55939 #39B559
tetradic
#5939B5 #B53957 #95B539 #39B597
square
#5939B5 #B53957 #95B539 #39B597
split-complementary
#5939B5 #B59739 #57B539
monochromatic
#2B1C58 #422A86 #5939B5 #7B5FCD #A18DDB

Accessibility & contrast

On white

7.84
#5939B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5939B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5939B5
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939B5#FFFFFF#000000##FFFFFF
##5939B51.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#004FB3
Tritanopia (blue-blind)
#385872
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5939b5;
/* rgb */ color: rgb(89, 57, 181);
/* oklch */ color: oklch(45.7% 0.185 288.7);
Tailwind
colors: {
  custom: {
    50: '#9072cc',
    500: '#5939b5',
    950: '#000000',
  },
}
SCSS
$custom: #5939b5;
$custom-light: #9072cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5939b5",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 255.484,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45715,
    "c": 0.18481,
    "h": 288.7
  },
  "luminance": 0.08386
}

Semantic roles & 50–950 ramp

primary
#5939B5
secondary
#B5C684
accent
#DC4CB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5939B5

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

Preview Lab → · Contrast checker → · Palette generator →

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