#5831CF#5831CF

#5831CF is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.224 H 285.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5831CF
RGBrgb(88, 49, 207)
HSLhsl(255, 62%, 50%)
HSVhsv(255, 76%, 81%)
CMYKcmyk(57.5%, 76.3%, 0%, 18.8%)
CIE-LABlab(35.55, 56.07, -74.96)
CIE-LCHlch(35.55, 93.60, 306.80°)
OKLaboklab(46.95% 0.0586 -0.2159)
OKLCHoklch(46.95% 0.224 285.2)
XYZxyz(16.3819, 8.7753, 59.8500)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831CF #A8CF31
analogous
#3159CF #5831CF #A731CF
triadic
#5831CF #CF5831 #31CF58
tetradic
#5831CF #CF3159 #A8CF31 #31CFA7
square
#5831CF #CF3159 #A8CF31 #31CFA7
split-complementary
#5831CF #CFA731 #59CF31
monochromatic
#2E196C #43259E #5831CF #8063DB #A894E6

Accessibility & contrast

On white

7.62
#5831CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5831CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831CF
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831CF#FFFFFF#000000##FFFFFF
##5831CF1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D3
Deuteranopia (green-blind)
#004FCC
Tritanopia (blue-blind)
#175E7F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5831cf;
/* rgb */ color: rgb(88, 49, 207);
/* oklch */ color: oklch(46.9% 0.224 285.2);
Tailwind
colors: {
  custom: {
    50: '#946edf',
    500: '#5831cf',
    950: '#000000',
  },
}
SCSS
$custom: #5831cf;
$custom-light: #946edf;
$custom-dark: #000000;
JSON
{
  "hex": "#5831cf",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 254.81,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.4695,
    "c": 0.22374,
    "h": 285.2
  },
  "luminance": 0.08776
}

Semantic roles & 50–950 ramp

primary
#5831CF
secondary
#C0D18B
accent
#E543BD
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5831CF

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

Preview Lab → · Contrast checker → · Palette generator →

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