#5831C2#5831C2

#5831C2 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.209 H 287.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5831C2
RGBrgb(88, 49, 194)
HSLhsl(256, 60%, 48%)
HSVhsv(256, 75%, 76%)
CMYKcmyk(54.6%, 74.7%, 0%, 23.9%)
CIE-LABlab(34.33, 52.42, -69.38)
CIE-LCHlch(34.33, 86.96, 307.07°)
OKLaboklab(45.72% 0.0621 -0.1996)
OKLCHoklch(45.72% 0.209 287.3)
XYZxyz(14.8575, 8.1656, 51.8217)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831C2 #9BC231
analogous
#3152C2 #5831C2 #A131C2
triadic
#5831C2 #C25831 #31C258
tetradic
#5831C2 #C23152 #9BC231 #31C2A1
square
#5831C2 #C23152 #9BC231 #31C2A1
split-complementary
#5831C2 #C2A131 #52C231
monochromatic
#2C1860 #422591 #5831C2 #7C5BD6 #A38CE2

Accessibility & contrast

On white

7.98
#5831C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5831C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831C2
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831C2#FFFFFF#000000##FFFFFF
##5831C21.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#2B5977
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5831c2;
/* rgb */ color: rgb(88, 49, 194);
/* oklch */ color: oklch(45.7% 0.209 287.3);
Tailwind
colors: {
  custom: {
    50: '#926dd6',
    500: '#5831c2',
    950: '#000000',
  },
}
SCSS
$custom: #5831c2;
$custom-light: #926dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5831c2",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 256.138,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45723,
    "c": 0.20904,
    "h": 287.3
  },
  "luminance": 0.08166
}

Semantic roles & 50–950 ramp

primary
#5831C2
secondary
#B8CC83
accent
#E345B8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5831C2

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

Preview Lab → · Contrast checker → · Palette generator →

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