#5831AF#5831AF

#5831AF is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.187 H 290.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5831AF
RGBrgb(88, 49, 175)
HSLhsl(259, 56%, 44%)
HSVhsv(259, 72%, 69%)
CMYKcmyk(49.7%, 72%, 0%, 31.4%)
CIE-LABlab(32.63, 47.08, -60.93)
CIE-LCHlch(32.63, 77.00, 307.69°)
OKLaboklab(44% 0.0665 -0.1748)
OKLCHoklch(44% 0.187 290.8)
XYZxyz(12.8585, 7.3660, 41.2934)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831AF #88AF31
analogous
#3149AF #5831AF #9731AF
triadic
#5831AF #AF5831 #31AF58
tetradic
#5831AF #AF3149 #88AF31 #31AF97
square
#5831AF #AF3149 #88AF31 #31AF97
split-complementary
#5831AF #AF9731 #49AF31
monochromatic
#28164F #40247F #5831AF #774FCE #9C7FDB

Accessibility & contrast

On white

8.49
#5831AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5831AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831AF
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831AF#FFFFFF#000000##FFFFFF
##5831AF1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#3B526D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5831af;
/* rgb */ color: rgb(88, 49, 175);
/* oklch */ color: oklch(44.0% 0.187 290.8);
Tailwind
colors: {
  custom: {
    50: '#8f6dc8',
    500: '#5831af',
    950: '#000000',
  },
}
SCSS
$custom: #5831af;
$custom-light: #8f6dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5831af",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 258.571,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44002,
    "c": 0.18706,
    "h": 290.8
  },
  "luminance": 0.07366
}

Semantic roles & 50–950 ramp

primary
#5831AF
secondary
#ACC478
accent
#E048B1
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5831AF

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

Preview Lab → · Contrast checker → · Palette generator →

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