#5931B8#5931B8

#5931B8 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.198 H 289.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5931B8
RGBrgb(89, 49, 184)
HSLhsl(258, 58%, 46%)
HSVhsv(258, 73%, 72%)
CMYKcmyk(51.6%, 73.4%, 0%, 27.8%)
CIE-LABlab(33.52, 49.77, -64.81)
CIE-LCHlch(33.52, 81.71, 307.52°)
OKLaboklab(44.9% 0.066 -0.1862)
OKLCHoklch(44.9% 0.198 289.5)
XYZxyz(13.8674, 7.7805, 46.1092)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931B8 #90B831
analogous
#314CB8 #5931B8 #9C31B8
triadic
#5931B8 #B85931 #31B859
tetradic
#5931B8 #B8314C #90B831 #31B89C
square
#5931B8 #B8314C #90B831 #31B89C
split-complementary
#5931B8 #B89C31 #4CB831
monochromatic
#2A1757 #422488 #5931B8 #7A55D2 #9F85DE

Accessibility & contrast

On white

8.22
#5931B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5931B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931B8
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931B8#FFFFFF#000000##FFFFFF
##5931B81.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004CB5
Tritanopia (blue-blind)
#365572
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5931b8;
/* rgb */ color: rgb(89, 49, 184);
/* oklch */ color: oklch(44.9% 0.198 289.5);
Tailwind
colors: {
  custom: {
    50: '#916dce',
    500: '#5931b8',
    950: '#000000',
  },
}
SCSS
$custom: #5931b8;
$custom-light: #916dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5931b8",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 257.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44904,
    "c": 0.19752,
    "h": 289.5
  },
  "luminance": 0.07781
}

Semantic roles & 50–950 ramp

primary
#5931B8
secondary
#B2C87D
accent
#E147B3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5931B8

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

Preview Lab → · Contrast checker → · Palette generator →

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