#5831B3#5831B3

#5831B3 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.192 H 290.0°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5831B3
RGBrgb(88, 49, 179)
HSLhsl(258, 57%, 45%)
HSVhsv(258, 73%, 70%)
CMYKcmyk(50.8%, 72.6%, 0%, 29.8%)
CIE-LABlab(32.97, 48.21, -62.74)
CIE-LCHlch(32.97, 79.12, 307.54°)
OKLaboklab(44.36% 0.0656 -0.1802)
OKLCHoklch(44.36% 0.192 290)
XYZxyz(13.2572, 7.5254, 43.3931)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831B3 #8CB331
analogous
#314BB3 #5831B3 #9931B3
triadic
#5831B3 #B35831 #31B358
tetradic
#5831B3 #B3314B #8CB331 #31B399
square
#5831B3 #B3314B #8CB331 #31B399
split-complementary
#5831B3 #B39931 #4BB331
monochromatic
#291753 #402483 #5831B3 #7752D0 #9D82DD

Accessibility & contrast

On white

8.38
#5831B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5831B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831B3
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831B3#FFFFFF#000000##FFFFFF
##5831B31.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#38536F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5831b3;
/* rgb */ color: rgb(88, 49, 179);
/* oklch */ color: oklch(44.4% 0.192 290.0);
Tailwind
colors: {
  custom: {
    50: '#906dcb',
    500: '#5831b3',
    950: '#000000',
  },
}
SCSS
$custom: #5831b3;
$custom-light: #906dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5831b3",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 258,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44356,
    "c": 0.19174,
    "h": 290
  },
  "luminance": 0.07526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5831B3

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

Preview Lab → · Contrast checker → · Palette generator →

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