#5831B2#5831B2

#5831B2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.191 H 290.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#5831B2
RGBrgb(88, 49, 178)
HSLhsl(258, 57%, 45%)
HSVhsv(258, 72%, 70%)
CMYKcmyk(50.6%, 72.5%, 0%, 30.2%)
CIE-LABlab(32.89, 47.93, -62.29)
CIE-LCHlch(32.89, 78.59, 307.57°)
OKLaboklab(44.27% 0.0658 -0.1788)
OKLCHoklch(44.27% 0.191 290.2)
XYZxyz(13.1564, 7.4851, 42.8624)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831B2 #8BB231
analogous
#314AB2 #5831B2 #9931B2
triadic
#5831B2 #B25831 #31B258
tetradic
#5831B2 #B2314A #8BB231 #31B299
square
#5831B2 #B2314A #8BB231 #31B299
split-complementary
#5831B2 #B29931 #4AB231
monochromatic
#291752 #402482 #5831B2 #7751CF #9D81DC

Accessibility & contrast

On white

8.41
#5831B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5831B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831B2
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831B2#FFFFFF#000000##FFFFFF
##5831B21.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#39536E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5831b2;
/* rgb */ color: rgb(88, 49, 178);
/* oklch */ color: oklch(44.3% 0.191 290.2);
Tailwind
colors: {
  custom: {
    50: '#906dca',
    500: '#5831b2',
    950: '#000000',
  },
}
SCSS
$custom: #5831b2;
$custom-light: #906dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5831b2",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 258.14,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44267,
    "c": 0.19057,
    "h": 290.2
  },
  "luminance": 0.07486
}

Semantic roles & 50–950 ramp

primary
#5831B2
secondary
#AEC579
accent
#E048B2
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5831B2

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

Preview Lab → · Contrast checker → · Palette generator →

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