#5831A2#5831A2

#5831A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.172 H 293.7°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5831A2
RGBrgb(88, 49, 162)
HSLhsl(261, 54%, 41%)
HSVhsv(261, 70%, 64%)
CMYKcmyk(45.7%, 69.8%, 0%, 36.5%)
CIE-LABlab(31.53, 43.44, -54.91)
CIE-LCHlch(31.53, 70.02, 308.35°)
OKLaboklab(42.88% 0.069 -0.1572)
OKLCHoklch(42.88% 0.172 293.7)
XYZxyz(11.6426, 6.8796, 34.8899)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831A2 #7BA231
analogous
#3143A2 #5831A2 #9131A2
triadic
#5831A2 #A25831 #31A258
tetradic
#5831A2 #A23143 #7BA231 #31A291
square
#5831A2 #A23143 #7BA231 #31A291
split-complementary
#5831A2 #A29131 #43A231
monochromatic
#251544 #3E2373 #5831A2 #7448C8 #9877D6

Accessibility & contrast

On white

8.84
#5831A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5831A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831A2
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831A2#FFFFFF#000000##FFFFFF
##5831A21.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#434D65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5831a2;
/* rgb */ color: rgb(88, 49, 162);
/* oklch */ color: oklch(42.9% 0.172 293.7);
Tailwind
colors: {
  custom: {
    50: '#8e6cbe',
    500: '#5831a2',
    950: '#000000',
  },
}
SCSS
$custom: #5831a2;
$custom-light: #8e6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5831a2",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 260.708,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42883,
    "c": 0.17165,
    "h": 293.7
  },
  "luminance": 0.0688
}

Semantic roles & 50–950 ramp

primary
#5831A2
secondary
#A3BE71
accent
#DD4BAB
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5831A2

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

Preview Lab → · Contrast checker → · Palette generator →

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