#5831C1#5831C1

#5831C1 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.208 H 287.4°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5831C1
RGBrgb(88, 49, 193)
HSLhsl(256, 60%, 47%)
HSVhsv(256, 75%, 76%)
CMYKcmyk(54.4%, 74.6%, 0%, 24.3%)
CIE-LABlab(34.23, 52.14, -68.95)
CIE-LCHlch(34.23, 86.45, 307.10°)
OKLaboklab(45.63% 0.0623 -0.1983)
OKLCHoklch(45.63% 0.208 287.4)
XYZxyz(14.7456, 8.1208, 51.2322)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831C1 #9AC131
analogous
#3152C1 #5831C1 #A031C1
triadic
#5831C1 #C15831 #31C158
tetradic
#5831C1 #C13152 #9AC131 #31C1A0
square
#5831C1 #C13152 #9AC131 #31C1A0
split-complementary
#5831C1 #C1A031 #52C131
monochromatic
#2B185F #422590 #5831C1 #7B5AD5 #A28BE2

Accessibility & contrast

On white

8.00
#5831C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5831C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831C1
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831C1#FFFFFF#000000##FFFFFF
##5831C11.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C5
Deuteranopia (green-blind)
#004DBE
Tritanopia (blue-blind)
#2C5977
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5831c1;
/* rgb */ color: rgb(88, 49, 193);
/* oklch */ color: oklch(45.6% 0.208 287.4);
Tailwind
colors: {
  custom: {
    50: '#926dd5',
    500: '#5831c1',
    950: '#000000',
  },
}
SCSS
$custom: #5831c1;
$custom-light: #926dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5831c1",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 193
  },
  "hsl": {
    "h": 256.25,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4563,
    "c": 0.20791,
    "h": 287.4
  },
  "luminance": 0.08122
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5831C1

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

Preview Lab → · Contrast checker → · Palette generator →

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