#5831BB#5831BB

#5831BB is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.1% C 0.201 H 288.5°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5831BB
RGBrgb(88, 49, 187)
HSLhsl(257, 58%, 46%)
HSVhsv(257, 74%, 73%)
CMYKcmyk(52.9%, 73.8%, 0%, 26.7%)
CIE-LABlab(33.69, 50.46, -66.31)
CIE-LCHlch(33.69, 83.33, 307.27°)
OKLaboklab(45.08% 0.0638 -0.1906)
OKLCHoklch(45.08% 0.201 288.5)
XYZxyz(14.0898, 7.8585, 47.7785)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831BB #94BB31
analogous
#314FBB #5831BB #9D31BB
triadic
#5831BB #BB5831 #31BB58
tetradic
#5831BB #BB314F #94BB31 #31BB9D
square
#5831BB #BB314F #94BB31 #31BB9D
split-complementary
#5831BB #BB9D31 #4FBB31
monochromatic
#2A185A #41248B #5831BB #7A56D3 #A087E0

Accessibility & contrast

On white

8.17
#5831BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5831BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831BB
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831BB#FFFFFF#000000##FFFFFF
##5831BB1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#325773
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5831bb;
/* rgb */ color: rgb(88, 49, 187);
/* oklch */ color: oklch(45.1% 0.201 288.5);
Tailwind
colors: {
  custom: {
    50: '#916dd1',
    500: '#5831bb',
    950: '#000000',
  },
}
SCSS
$custom: #5831bb;
$custom-light: #916dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5831bb",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 256.957,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45078,
    "c": 0.20102,
    "h": 288.5
  },
  "luminance": 0.07859
}

Semantic roles & 50–950 ramp

primary
#5831BB
secondary
#B4C97F
accent
#E246B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5831BB

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

Preview Lab → · Contrast checker → · Palette generator →

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