#5931A4#5931A4

#5931A4 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.174 H 293.7°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5931A4
RGBrgb(89, 49, 164)
HSLhsl(261, 54%, 42%)
HSVhsv(261, 70%, 64%)
CMYKcmyk(45.7%, 70.1%, 0%, 35.7%)
CIE-LABlab(31.81, 44.18, -55.66)
CIE-LCHlch(31.81, 71.07, 308.44°)
OKLaboklab(43.16% 0.0701 -0.1593)
OKLCHoklch(43.16% 0.174 293.7)
XYZxyz(11.9171, 7.0005, 35.8381)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931A4 #7CA431
analogous
#3142A4 #5931A4 #9331A4
triadic
#5931A4 #A45931 #31A459
tetradic
#5931A4 #A43142 #7CA431 #31A493
square
#5931A4 #A43142 #7CA431 #31A493
split-complementary
#5931A4 #A49331 #42A431
monochromatic
#261546 #3F2375 #5931A4 #7649C9 #9979D7

Accessibility & contrast

On white

8.75
#5931A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5931A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931A4
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931A4#FFFFFF#000000##FFFFFF
##5931A41.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#434E67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5931a4;
/* rgb */ color: rgb(89, 49, 164);
/* oklch */ color: oklch(43.2% 0.174 293.7);
Tailwind
colors: {
  custom: {
    50: '#8f6cc0',
    500: '#5931a4',
    950: '#000000',
  },
}
SCSS
$custom: #5931a4;
$custom-light: #8f6cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5931a4",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 260.87,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43158,
    "c": 0.17408,
    "h": 293.7
  },
  "luminance": 0.07001
}

Semantic roles & 50–950 ramp

primary
#5931A4
secondary
#A4BF72
accent
#DD4AAA
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5931A4

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

Preview Lab → · Contrast checker → · Palette generator →

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