#5931A2#5931A2

#5931A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.172 H 294.2°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#5931A2
RGBrgb(89, 49, 162)
HSLhsl(261, 54%, 41%)
HSVhsv(261, 70%, 64%)
CMYKcmyk(45.1%, 69.8%, 0%, 36.5%)
CIE-LABlab(31.64, 43.63, -54.72)
CIE-LCHlch(31.64, 69.99, 308.57°)
OKLaboklab(42.99% 0.0705 -0.1566)
OKLCHoklch(42.99% 0.172 294.2)
XYZxyz(11.7380, 6.9288, 34.8944)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931A2 #7AA231
analogous
#3142A2 #5931A2 #9231A2
triadic
#5931A2 #A25931 #31A259
tetradic
#5931A2 #A23142 #7AA231 #31A292
square
#5931A2 #A23142 #7AA231 #31A292
split-complementary
#5931A2 #A29231 #42A231
monochromatic
#251544 #3F2373 #5931A2 #7648C8 #9977D6

Accessibility & contrast

On white

8.80
#5931A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5931A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931A2
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931A2#FFFFFF#000000##FFFFFF
##5931A21.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#444D66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5931a2;
/* rgb */ color: rgb(89, 49, 162);
/* oklch */ color: oklch(43.0% 0.172 294.2);
Tailwind
colors: {
  custom: {
    50: '#8e6cbe',
    500: '#5931a2',
    950: '#000000',
  },
}
SCSS
$custom: #5931a2;
$custom-light: #8e6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5931a2",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 261.239,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4299,
    "c": 0.1717,
    "h": 294.2
  },
  "luminance": 0.06929
}

Semantic roles & 50–950 ramp

primary
#5931A2
secondary
#A3BE71
accent
#DD4BA9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5931A2

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

Preview Lab → · Contrast checker → · Palette generator →

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