#5931BA#5931BA

#5931BA is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.200 H 289.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#5931BA
RGBrgb(89, 49, 186)
HSLhsl(258, 58%, 46%)
HSVhsv(258, 74%, 73%)
CMYKcmyk(52.2%, 73.7%, 0%, 27.1%)
CIE-LABlab(33.70, 50.33, -65.70)
CIE-LCHlch(33.70, 82.76, 307.45°)
OKLaboklab(45.08% 0.0655 -0.1888)
OKLCHoklch(45.08% 0.2 289.1)
XYZxyz(14.0785, 7.8650, 47.2211)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931BA #92BA31
analogous
#314DBA #5931BA #9D31BA
triadic
#5931BA #BA5931 #31BA59
tetradic
#5931BA #BA314D #92BA31 #31BA9D
square
#5931BA #BA314D #92BA31 #31BA9D
split-complementary
#5931BA #BA9D31 #4DBA31
monochromatic
#2B1759 #42248A #5931BA #7A56D2 #A086DF

Accessibility & contrast

On white

8.16
#5931BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5931BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931BA
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931BA#FFFFFF#000000##FFFFFF
##5931BA1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#004CB7
Tritanopia (blue-blind)
#355673
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5931ba;
/* rgb */ color: rgb(89, 49, 186);
/* oklch */ color: oklch(45.1% 0.200 289.1);
Tailwind
colors: {
  custom: {
    50: '#926dd0',
    500: '#5931ba',
    950: '#000000',
  },
}
SCSS
$custom: #5931ba;
$custom-light: #926dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5931ba",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 257.518,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45084,
    "c": 0.19983,
    "h": 289.1
  },
  "luminance": 0.07866
}

Semantic roles & 50–950 ramp

primary
#5931BA
secondary
#B3C97E
accent
#E246B4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5931BA

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

Preview Lab → · Contrast checker → · Palette generator →

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