#5937BA#5937BA

#5937BA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.193 H 288.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5937BA
RGBrgb(89, 55, 186)
HSLhsl(256, 54%, 47%)
HSVhsv(256, 70%, 73%)
CMYKcmyk(52.2%, 70.4%, 0%, 27.1%)
CIE-LABlab(34.80, 47.24, -63.89)
CIE-LCHlch(34.80, 79.45, 306.48°)
OKLaboklab(45.87% 0.0604 -0.1835)
OKLCHoklch(45.87% 0.193 288.2)
XYZxyz(14.3463, 8.4007, 47.3104)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5937BA #98BA37
analogous
#3756BA #5937BA #9B37BA
triadic
#5937BA #BA5937 #37BA59
tetradic
#5937BA #BA3756 #98BA37 #37BA9B
square
#5937BA #BA3756 #98BA37 #37BA9B
split-complementary
#5937BA #BA9B37 #56BA37
monochromatic
#2C1B5C #42298B #5937BA #7C5FD0 #A38EDE

Accessibility & contrast

On white

7.84
#5937BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5937BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5937BA
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5937BA#FFFFFF#000000##FFFFFF
##5937BA1.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)
#0055BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#345974
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5937ba;
/* rgb */ color: rgb(89, 55, 186);
/* oklch */ color: oklch(45.9% 0.193 288.2);
Tailwind
colors: {
  custom: {
    50: '#9171d0',
    500: '#5937ba',
    950: '#000000',
  },
}
SCSS
$custom: #5937ba;
$custom-light: #9171d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5937ba",
  "rgb": {
    "r": 89,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 255.573,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45867,
    "c": 0.19319,
    "h": 288.2
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

primary
#5937BA
secondary
#B7C885
accent
#DE4AB7
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5937BA

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

Preview Lab → · Contrast checker → · Palette generator →

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