#5931B5#5931B5

#5931B5 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.194 H 290.1°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#5931B5
RGBrgb(89, 49, 181)
HSLhsl(258, 57%, 45%)
HSVhsv(258, 73%, 71%)
CMYKcmyk(50.8%, 72.9%, 0%, 29%)
CIE-LABlab(33.26, 48.93, -63.46)
CIE-LCHlch(33.26, 80.13, 307.63°)
OKLaboklab(44.63% 0.0667 -0.1822)
OKLCHoklch(44.63% 0.194 290.1)
XYZxyz(13.5562, 7.6561, 44.4706)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931B5 #8DB531
analogous
#314BB5 #5931B5 #9B31B5
triadic
#5931B5 #B55931 #31B559
tetradic
#5931B5 #B5314B #8DB531 #31B59B
square
#5931B5 #B5314B #8DB531 #31B59B
split-complementary
#5931B5 #B59B31 #4BB531
monochromatic
#2A1755 #412485 #5931B5 #7953D0 #9E83DD

Accessibility & contrast

On white

8.30
#5931B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5931B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931B5
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931B5#FFFFFF#000000##FFFFFF
##5931B51.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#395470
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5931b5;
/* rgb */ color: rgb(89, 49, 181);
/* oklch */ color: oklch(44.6% 0.194 290.1);
Tailwind
colors: {
  custom: {
    50: '#916dcc',
    500: '#5931b5',
    950: '#000000',
  },
}
SCSS
$custom: #5931b5;
$custom-light: #916dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5931b5",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 258.182,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44634,
    "c": 0.19405,
    "h": 290.1
  },
  "luminance": 0.07657
}

Semantic roles & 50–950 ramp

primary
#5931B5
secondary
#B0C77B
accent
#E147B2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5931B5

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

Preview Lab → · Contrast checker → · Palette generator →

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