#5831B5#5831B5

#5831B5 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.194 H 289.6°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#5831B5
RGBrgb(88, 49, 181)
HSLhsl(258, 57%, 45%)
HSVhsv(258, 73%, 71%)
CMYKcmyk(51.4%, 72.9%, 0%, 29%)
CIE-LABlab(33.15, 48.77, -63.64)
CIE-LCHlch(33.15, 80.18, 307.46°)
OKLaboklab(44.54% 0.0652 -0.1828)
OKLCHoklch(44.54% 0.194 289.6)
XYZxyz(13.4609, 7.6069, 44.4661)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831B5 #8EB531
analogous
#314CB5 #5831B5 #9A31B5
triadic
#5831B5 #B55831 #31B558
tetradic
#5831B5 #B5314C #8EB531 #31B59A
square
#5831B5 #B5314C #8EB531 #31B59A
split-complementary
#5831B5 #B59A31 #4CB531
monochromatic
#291755 #412485 #5831B5 #7853D0 #9E83DD

Accessibility & contrast

On white

8.33
#5831B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5831B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831B5
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831B5#FFFFFF#000000##FFFFFF
##5831B51.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#375470
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5831b5;
/* rgb */ color: rgb(88, 49, 181);
/* oklch */ color: oklch(44.5% 0.194 289.6);
Tailwind
colors: {
  custom: {
    50: '#906dcc',
    500: '#5831b5',
    950: '#000000',
  },
}
SCSS
$custom: #5831b5;
$custom-light: #906dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5831b5",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 257.727,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44535,
    "c": 0.19407,
    "h": 289.6
  },
  "luminance": 0.07608
}

Semantic roles & 50–950 ramp

primary
#5831B5
secondary
#B0C77B
accent
#E147B3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5831B5

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

Preview Lab → · Contrast checker → · Palette generator →

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