#5937B2#5937B2

#5937B2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.184 H 289.7°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5937B2
RGBrgb(89, 55, 178)
HSLhsl(257, 53%, 46%)
HSVhsv(257, 69%, 70%)
CMYKcmyk(50%, 69.1%, 0%, 30.2%)
CIE-LABlab(34.13, 44.93, -60.26)
CIE-LCHlch(34.13, 75.17, 306.71°)
OKLaboklab(45.18% 0.0618 -0.1729)
OKLCHoklch(45.18% 0.184 289.7)
XYZxyz(13.5196, 8.0700, 42.9562)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937B2 #90B237
analogous
#3753B2 #5937B2 #9637B2
triadic
#5937B2 #B25937 #37B259
tetradic
#5937B2 #B23753 #90B237 #37B296
square
#5937B2 #B23753 #90B237 #37B296
split-complementary
#5937B2 #B29637 #53B237
monochromatic
#2A1A54 #422983 #5937B2 #7A5ACC #9F89DB

Accessibility & contrast

On white

8.03
#5937B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5937B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937B2
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937B2#FFFFFF#000000##FFFFFF
##5937B21.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#3A5670
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5937b2;
/* rgb */ color: rgb(89, 55, 178);
/* oklch */ color: oklch(45.2% 0.184 289.7);
Tailwind
colors: {
  custom: {
    50: '#9070ca',
    500: '#5937b2',
    950: '#000000',
  },
}
SCSS
$custom: #5937b2;
$custom-light: #9070ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5937b2",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 256.585,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45176,
    "c": 0.18358,
    "h": 289.7
  },
  "luminance": 0.08071
}

Semantic roles & 50–950 ramp

primary
#5937B2
secondary
#B2C580
accent
#DC4CB4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5937B2

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

Preview Lab → · Contrast checker → · Palette generator →

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