#5937B3#5937B3

#5937B3 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.185 H 289.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5937B3
RGBrgb(89, 55, 179)
HSLhsl(256, 53%, 46%)
HSVhsv(256, 69%, 70%)
CMYKcmyk(50.3%, 69.3%, 0%, 29.8%)
CIE-LABlab(34.21, 45.22, -60.71)
CIE-LCHlch(34.21, 75.70, 306.68°)
OKLaboklab(45.26% 0.0616 -0.1742)
OKLCHoklch(45.26% 0.185 289.5)
XYZxyz(13.6203, 8.1103, 43.4869)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937B3 #91B337
analogous
#3753B3 #5937B3 #9737B3
triadic
#5937B3 #B35937 #37B359
tetradic
#5937B3 #B33753 #91B337 #37B397
square
#5937B3 #B33753 #91B337 #37B397
split-complementary
#5937B3 #B39737 #53B337
monochromatic
#2A1A55 #422984 #5937B3 #7A5BCD #A08ADB

Accessibility & contrast

On white

8.01
#5937B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5937B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937B3
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937B3#FFFFFF#000000##FFFFFF
##5937B31.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#3A5771
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5937b3;
/* rgb */ color: rgb(89, 55, 179);
/* oklch */ color: oklch(45.3% 0.185 289.5);
Tailwind
colors: {
  custom: {
    50: '#9070cb',
    500: '#5937b3',
    950: '#000000',
  },
}
SCSS
$custom: #5937b3;
$custom-light: #9070cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5937b3",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 179
  },
  "hsl": {
    "h": 256.452,
    "s": 52.991,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45261,
    "c": 0.18478,
    "h": 289.5
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

primary
#5937B3
secondary
#B2C581
accent
#DC4BB5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5937B3

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

Preview Lab → · Contrast checker → · Palette generator →

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