#5831C8#5831C8

#5831C8 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.3% C 0.216 H 286.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5831C8
RGBrgb(88, 49, 200)
HSLhsl(255, 61%, 49%)
HSVhsv(255, 76%, 78%)
CMYKcmyk(56%, 75.5%, 0%, 21.6%)
CIE-LABlab(34.88, 54.11, -71.98)
CIE-LCHlch(34.88, 90.04, 306.93°)
OKLaboklab(46.28% 0.0605 -0.2072)
OKLCHoklch(46.28% 0.216 286.3)
XYZxyz(15.5450, 8.4406, 55.4425)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831C8 #A1C831
analogous
#3155C8 #5831C8 #A431C8
triadic
#5831C8 #C85831 #31C858
tetradic
#5831C8 #C83155 #A1C831 #31C8A4
square
#5831C8 #C83155 #A1C831 #31C8A4
split-complementary
#5831C8 #C8A431 #55C831
monochromatic
#2D1966 #422597 #5831C8 #7E5FD8 #A590E4

Accessibility & contrast

On white

7.81
#5831C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5831C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831C8
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831C8#FFFFFF#000000##FFFFFF
##5831C81.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CC
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#235C7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5831c8;
/* rgb */ color: rgb(88, 49, 200);
/* oklch */ color: oklch(46.3% 0.216 286.3);
Tailwind
colors: {
  custom: {
    50: '#936eda',
    500: '#5831c8',
    950: '#000000',
  },
}
SCSS
$custom: #5831c8;
$custom-light: #936eda;
$custom-dark: #000000;
JSON
{
  "hex": "#5831c8",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 255.497,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46284,
    "c": 0.21586,
    "h": 286.3
  },
  "luminance": 0.08441
}

Semantic roles & 50–950 ramp

primary
#5831C8
secondary
#BCCE86
accent
#E444BB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5831C8

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

Preview Lab → · Contrast checker → · Palette generator →

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