#5939B2#5939B2

#5939B2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.181 H 289.3°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5939B2
RGBrgb(89, 57, 178)
HSLhsl(256, 51%, 46%)
HSVhsv(256, 68%, 70%)
CMYKcmyk(50%, 68%, 0%, 30.2%)
CIE-LABlab(34.53, 43.84, -59.61)
CIE-LCHlch(34.53, 73.99, 306.33°)
OKLaboklab(45.46% 0.0599 -0.1709)
OKLCHoklch(45.46% 0.181 289.3)
XYZxyz(13.6165, 8.2639, 42.9885)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5939B2 #92B239
analogous
#3955B2 #5939B2 #9539B2
triadic
#5939B2 #B25939 #39B259
tetradic
#5939B2 #B23955 #92B239 #39B295
square
#5939B2 #B23955 #92B239 #39B295
split-complementary
#5939B2 #B29539 #55B239
monochromatic
#2B1B55 #422A84 #5939B2 #7A5DCB #A08BDA

Accessibility & contrast

On white

7.92
#5939B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5939B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5939B2
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5939B2#FFFFFF#000000##FFFFFF
##5939B21.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#3A5771
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5939b2;
/* rgb */ color: rgb(89, 57, 178);
/* oklch */ color: oklch(45.5% 0.181 289.3);
Tailwind
colors: {
  custom: {
    50: '#9072ca',
    500: '#5939b2',
    950: '#000000',
  },
}
SCSS
$custom: #5939b2;
$custom-light: #9072ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5939b2",
  "rgb": {
    "r": 89,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 255.868,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45461,
    "c": 0.18113,
    "h": 289.3
  },
  "luminance": 0.08264
}

Semantic roles & 50–950 ramp

primary
#5939B2
secondary
#B3C482
accent
#DB4DB5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5939B2

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

Preview Lab → · Contrast checker → · Palette generator →

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