#5831BE#5831BE

#5831BE is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.204 H 288.0°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5831BE
RGBrgb(88, 49, 190)
HSLhsl(257, 59%, 47%)
HSVhsv(257, 74%, 75%)
CMYKcmyk(53.7%, 74.2%, 0%, 25.5%)
CIE-LABlab(33.96, 51.30, -67.64)
CIE-LCHlch(33.96, 84.89, 307.18°)
OKLaboklab(45.35% 0.0631 -0.1945)
OKLCHoklch(45.35% 0.204 288)
XYZxyz(14.4143, 7.9883, 49.4876)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831BE #97BE31
analogous
#3150BE #5831BE #9F31BE
triadic
#5831BE #BE5831 #31BE58
tetradic
#5831BE #BE3150 #97BE31 #31BE9F
square
#5831BE #BE3150 #97BE31 #31BE9F
split-complementary
#5831BE #BE9F31 #50BE31
monochromatic
#2B185D #41248D #5831BE #7A58D4 #A189E1

Accessibility & contrast

On white

8.08
#5831BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5831BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5831BE
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831BE#FFFFFF#000000##FFFFFF
##5831BE1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C2
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#2F5875
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5831be;
/* rgb */ color: rgb(88, 49, 190);
/* oklch */ color: oklch(45.4% 0.204 288.0);
Tailwind
colors: {
  custom: {
    50: '#926dd3',
    500: '#5831be',
    950: '#000000',
  },
}
SCSS
$custom: #5831be;
$custom-light: #926dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5831be",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 256.596,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45353,
    "c": 0.20447,
    "h": 288
  },
  "luminance": 0.07989
}

Semantic roles & 50–950 ramp

primary
#5831BE
secondary
#B6CA80
accent
#E246B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5831BE

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

Preview Lab → · Contrast checker → · Palette generator →

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