#5931AB#5931AB

#5931AB is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.182 H 292.2°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#5931AB
RGBrgb(89, 49, 171)
HSLhsl(260, 55%, 43%)
HSVhsv(260, 71%, 67%)
CMYKcmyk(48%, 71.3%, 0%, 32.9%)
CIE-LABlab(32.39, 46.13, -58.92)
CIE-LCHlch(32.39, 74.83, 308.06°)
OKLaboklab(43.76% 0.0688 -0.1689)
OKLCHoklch(43.76% 0.182 292.2)
XYZxyz(12.5668, 7.2603, 39.2594)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931AB #83AB31
analogous
#3146AB #5931AB #9631AB
triadic
#5931AB #AB5931 #31AB59
tetradic
#5931AB #AB3146 #83AB31 #31AB96
square
#5931AB #AB3146 #83AB31 #31AB96
split-complementary
#5931AB #AB9631 #46AB31
monochromatic
#27164C #40237B #5931AB #774DCC #9B7DDA

Accessibility & contrast

On white

8.56
#5931AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5931AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931AB
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931AB#FFFFFF#000000##FFFFFF
##5931AB1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#3F506A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5931ab;
/* rgb */ color: rgb(89, 49, 171);
/* oklch */ color: oklch(43.8% 0.182 292.2);
Tailwind
colors: {
  custom: {
    50: '#906dc5',
    500: '#5931ab',
    950: '#000000',
  },
}
SCSS
$custom: #5931ab;
$custom-light: #906dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5931ab",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 259.672,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43755,
    "c": 0.18237,
    "h": 292.2
  },
  "luminance": 0.07261
}

Semantic roles & 50–950 ramp

primary
#5931AB
secondary
#A9C275
accent
#DF49AE
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5931AB

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

Preview Lab → · Contrast checker → · Palette generator →

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