#5831BA#5831BA

#5831BA is a dark, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.200 H 288.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#5831BA
RGBrgb(88, 49, 186)
HSLhsl(257, 58%, 46%)
HSVhsv(257, 74%, 73%)
CMYKcmyk(52.7%, 73.7%, 0%, 27.1%)
CIE-LABlab(33.60, 50.17, -65.87)
CIE-LCHlch(33.60, 82.80, 307.30°)
OKLaboklab(44.99% 0.064 -0.1893)
OKLCHoklch(44.99% 0.2 288.7)
XYZxyz(13.9831, 7.8158, 47.2167)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831BA #93BA31
analogous
#314EBA #5831BA #9C31BA
triadic
#5831BA #BA5831 #31BA58
tetradic
#5831BA #BA314E #93BA31 #31BA9C
square
#5831BA #BA314E #93BA31 #31BA9C
split-complementary
#5831BA #BA9C31 #4EBA31
monochromatic
#2A1759 #41248A #5831BA #7956D2 #A086DF

Accessibility & contrast

On white

8.19
#5831BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5831BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831BA
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831BA#FFFFFF#000000##FFFFFF
##5831BA1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#004BB7
Tritanopia (blue-blind)
#325673
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5831ba;
/* rgb */ color: rgb(88, 49, 186);
/* oklch */ color: oklch(45.0% 0.200 288.7);
Tailwind
colors: {
  custom: {
    50: '#916dd0',
    500: '#5831ba',
    950: '#000000',
  },
}
SCSS
$custom: #5831ba;
$custom-light: #916dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5831ba",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 257.08,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44987,
    "c": 0.19987,
    "h": 288.7
  },
  "luminance": 0.07817
}

Semantic roles & 50–950 ramp

primary
#5831BA
secondary
#B3C97E
accent
#E246B5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5831BA

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

Preview Lab → · Contrast checker → · Palette generator →

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