#5831BF#5831BF

#5831BF is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.206 H 287.8°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5831BF
RGBrgb(88, 49, 191)
HSLhsl(256, 59%, 47%)
HSVhsv(256, 74%, 75%)
CMYKcmyk(53.9%, 74.3%, 0%, 25.1%)
CIE-LABlab(34.05, 51.58, -68.07)
CIE-LCHlch(34.05, 85.41, 307.15°)
OKLaboklab(45.45% 0.0628 -0.1958)
OKLCHoklch(45.45% 0.206 287.8)
XYZxyz(14.5240, 8.0322, 50.0652)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831BF #98BF31
analogous
#3151BF #5831BF #9F31BF
triadic
#5831BF #BF5831 #31BF58
tetradic
#5831BF #BF3151 #98BF31 #31BF9F
square
#5831BF #BF3151 #98BF31 #31BF9F
split-complementary
#5831BF #BF9F31 #51BF31
monochromatic
#2B185E #42258E #5831BF #7B59D4 #A28AE1

Accessibility & contrast

On white

8.06
#5831BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5831BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831BF
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831BF#FFFFFF#000000##FFFFFF
##5831BF1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#2E5876
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5831bf;
/* rgb */ color: rgb(88, 49, 191);
/* oklch */ color: oklch(45.4% 0.206 287.8);
Tailwind
colors: {
  custom: {
    50: '#926dd3',
    500: '#5831bf',
    950: '#000000',
  },
}
SCSS
$custom: #5831bf;
$custom-light: #926dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5831bf",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 256.479,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45445,
    "c": 0.20562,
    "h": 287.8
  },
  "luminance": 0.08033
}

Semantic roles & 50–950 ramp

primary
#5831BF
secondary
#B7CB81
accent
#E245B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5831BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5831BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva