#5831D0#5831D0

#5831D0 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.0% C 0.225 H 285.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5831D0
RGBrgb(88, 49, 208)
HSLhsl(255, 63%, 50%)
HSVhsv(255, 76%, 82%)
CMYKcmyk(57.7%, 76.4%, 0%, 18.4%)
CIE-LABlab(35.64, 56.35, -75.38)
CIE-LCHlch(35.64, 94.11, 306.78°)
OKLaboklab(47.05% 0.0584 -0.2171)
OKLCHoklch(47.05% 0.225 285)
XYZxyz(16.5045, 8.8244, 60.4959)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5831D0 #A9D031
analogous
#3159D0 #5831D0 #A731D0
triadic
#5831D0 #D05831 #31D058
tetradic
#5831D0 #D03159 #A9D031 #31D0A7
square
#5831D0 #D03159 #A9D031 #31D0A7
split-complementary
#5831D0 #D0A731 #59D031
monochromatic
#2E196E #43249F #5831D0 #8063DB #A995E7

Accessibility & contrast

On white

7.59
#5831D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5831D0
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5831D0#FFFFFF#000000##FFFFFF
##5831D01.007.592.767.59
#FFFFFF7.591.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D4
Deuteranopia (green-blind)
#004FCD
Tritanopia (blue-blind)
#155F7F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5831d0;
/* rgb */ color: rgb(88, 49, 208);
/* oklch */ color: oklch(47.0% 0.225 285.0);
Tailwind
colors: {
  custom: {
    50: '#946ee0',
    500: '#5831d0',
    950: '#000000',
  },
}
SCSS
$custom: #5831d0;
$custom-light: #946ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#5831d0",
  "rgb": {
    "r": 88,
    "g": 49,
    "b": 208
  },
  "hsl": {
    "h": 254.717,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47046,
    "c": 0.22486,
    "h": 285
  },
  "luminance": 0.08825
}

Semantic roles & 50–950 ramp

primary
#5831D0
secondary
#C0D28B
accent
#E642BE
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5831D0

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

Preview Lab → · Contrast checker → · Palette generator →

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