#5831B8#5831B8

#5831B8 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.198 H 289.1°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5831B8
RGBrgb(88, 49, 184)
HSLhsl(257, 58%, 46%)
HSVhsv(257, 73%, 72%)
CMYKcmyk(52.2%, 73.4%, 0%, 27.8%)
CIE-LABlab(33.42, 49.61, -64.98)
CIE-LCHlch(33.42, 81.76, 307.36°)
OKLaboklab(44.81% 0.0645 -0.1867)
OKLCHoklch(44.81% 0.198 289.1)
XYZxyz(13.7720, 7.7314, 46.1047)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831B8 #91B831
analogous
#314EB8 #5831B8 #9B31B8
triadic
#5831B8 #B85831 #31B858
tetradic
#5831B8 #B8314E #91B831 #31B89B
square
#5831B8 #B8314E #91B831 #31B89B
split-complementary
#5831B8 #B89B31 #4EB831
monochromatic
#2A1757 #412488 #5831B8 #7955D2 #9F85DE

Accessibility & contrast

On white

8.25
#5831B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5831B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831B8
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831B8#FFFFFF#000000##FFFFFF
##5831B81.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#345572
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5831b8;
/* rgb */ color: rgb(88, 49, 184);
/* oklch */ color: oklch(44.8% 0.198 289.1);
Tailwind
colors: {
  custom: {
    50: '#916dce',
    500: '#5831b8',
    950: '#000000',
  },
}
SCSS
$custom: #5831b8;
$custom-light: #916dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5831b8",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 257.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44805,
    "c": 0.19755,
    "h": 289.1
  },
  "luminance": 0.07732
}

Semantic roles & 50–950 ramp

primary
#5831B8
secondary
#B2C87D
accent
#E147B5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5831B8

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

Preview Lab → · Contrast checker → · Palette generator →

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