#5931BC#5931BC

#5931BC is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.3% C 0.202 H 288.8°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5931BC
RGBrgb(89, 49, 188)
HSLhsl(257, 59%, 46%)
HSVhsv(257, 74%, 74%)
CMYKcmyk(52.7%, 73.9%, 0%, 26.3%)
CIE-LABlab(33.88, 50.89, -66.58)
CIE-LCHlch(33.88, 83.80, 307.39°)
OKLaboklab(45.27% 0.065 -0.1914)
OKLCHoklch(45.27% 0.202 288.8)
XYZxyz(14.2926, 7.9506, 48.3487)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931BC #94BC31
analogous
#314FBC #5931BC #9F31BC
triadic
#5931BC #BC5931 #31BC59
tetradic
#5931BC #BC314F #94BC31 #31BC9F
square
#5931BC #BC314F #94BC31 #31BC9F
split-complementary
#5931BC #BC9F31 #4FBC31
monochromatic
#2B185B #42248B #5931BC #7B57D3 #A188E0

Accessibility & contrast

On white

8.11
#5931BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5931BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931BC
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931BC#FFFFFF#000000##FFFFFF
##5931BC1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#335774
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5931bc;
/* rgb */ color: rgb(89, 49, 188);
/* oklch */ color: oklch(45.3% 0.202 288.8);
Tailwind
colors: {
  custom: {
    50: '#926dd1',
    500: '#5931bc',
    950: '#000000',
  },
}
SCSS
$custom: #5931bc;
$custom-light: #926dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5931bc",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 257.266,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45266,
    "c": 0.20213,
    "h": 288.8
  },
  "luminance": 0.07951
}

Semantic roles & 50–950 ramp

primary
#5931BC
secondary
#B4CA7F
accent
#E246B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5931BC

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

Preview Lab → · Contrast checker → · Palette generator →

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