#5831BC#5831BC

#5831BC is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.202 H 288.3°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#5831BC
RGBrgb(88, 49, 188)
HSLhsl(257, 59%, 46%)
HSVhsv(257, 74%, 74%)
CMYKcmyk(53.2%, 73.9%, 0%, 26.3%)
CIE-LABlab(33.78, 50.74, -66.76)
CIE-LCHlch(33.78, 83.85, 307.24°)
OKLaboklab(45.17% 0.0635 -0.1919)
OKLCHoklch(45.17% 0.202 288.3)
XYZxyz(14.1972, 7.9015, 48.3443)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831BC #95BC31
analogous
#314FBC #5831BC #9E31BC
triadic
#5831BC #BC5831 #31BC58
tetradic
#5831BC #BC314F #95BC31 #31BC9E
square
#5831BC #BC314F #95BC31 #31BC9E
split-complementary
#5831BC #BC9E31 #4FBC31
monochromatic
#2B185B #41248B #5831BC #7A57D3 #A088E0

Accessibility & contrast

On white

8.14
#5831BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5831BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831BC
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831BC#FFFFFF#000000##FFFFFF
##5831BC1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#315774
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5831bc;
/* rgb */ color: rgb(88, 49, 188);
/* oklch */ color: oklch(45.2% 0.202 288.3);
Tailwind
colors: {
  custom: {
    50: '#916dd1',
    500: '#5831bc',
    950: '#000000',
  },
}
SCSS
$custom: #5831bc;
$custom-light: #916dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5831bc",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 256.835,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45169,
    "c": 0.20217,
    "h": 288.3
  },
  "luminance": 0.07902
}

Semantic roles & 50–950 ramp

primary
#5831BC
secondary
#B5CA7F
accent
#E246B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5831BC

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

Preview Lab → · Contrast checker → · Palette generator →

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