#5931BE#5931BE

#5931BE is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.204 H 288.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5931BE
RGBrgb(89, 49, 190)
HSLhsl(257, 59%, 47%)
HSVhsv(257, 74%, 75%)
CMYKcmyk(53.2%, 74.2%, 0%, 25.5%)
CIE-LABlab(34.06, 51.45, -67.46)
CIE-LCHlch(34.06, 84.84, 307.33°)
OKLaboklab(45.45% 0.0645 -0.194)
OKLCHoklch(45.45% 0.204 288.4)
XYZxyz(14.5097, 8.0375, 49.4921)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5931BE #96BE31
analogous
#3150BE #5931BE #A031BE
triadic
#5931BE #BE5931 #31BE59
tetradic
#5931BE #BE3150 #96BE31 #31BEA0
square
#5931BE #BE3150 #96BE31 #31BEA0
split-complementary
#5931BE #BEA031 #50BE31
monochromatic
#2B185D #42248D #5931BE #7B58D4 #A289E1

Accessibility & contrast

On white

8.05
#5931BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5931BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5931BE
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5931BE#FFFFFF#000000##FFFFFF
##5931BE1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C2
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#315875
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5931be;
/* rgb */ color: rgb(89, 49, 190);
/* oklch */ color: oklch(45.4% 0.204 288.4);
Tailwind
colors: {
  custom: {
    50: '#926dd3',
    500: '#5931be',
    950: '#000000',
  },
}
SCSS
$custom: #5931be;
$custom-light: #926dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5931be",
  "rgb": {
    "r": 89,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 257.021,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45449,
    "c": 0.20442,
    "h": 288.4
  },
  "luminance": 0.08038
}

Semantic roles & 50–950 ramp

primary
#5931BE
secondary
#B5CA80
accent
#E246B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5931BE

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

Preview Lab → · Contrast checker → · Palette generator →

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