#5631BA#5631BA

#5631BA is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.200 H 287.8°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5631BA
RGBrgb(86, 49, 186)
HSLhsl(256, 58%, 46%)
HSVhsv(256, 74%, 73%)
CMYKcmyk(53.8%, 73.7%, 0%, 27.1%)
CIE-LABlab(33.39, 49.88, -66.21)
CIE-LCHlch(33.39, 82.90, 306.99°)
OKLaboklab(44.79% 0.0611 -0.1904)
OKLCHoklch(44.79% 0.2 287.8)
XYZxyz(13.7964, 7.7195, 47.2079)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5631BA #95BA31
analogous
#3151BA #5631BA #9A31BA
triadic
#5631BA #BA5631 #31BA56
tetradic
#5631BA #BA3151 #95BA31 #31BA9A
square
#5631BA #BA3151 #95BA31 #31BA9A
split-complementary
#5631BA #BA9A31 #51BA31
monochromatic
#291759 #40248A #5631BA #7756D2 #9E86DF

Accessibility & contrast

On white

8.25
#5631BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5631BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5631BA
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5631BA#FFFFFF#000000##FFFFFF
##5631BA1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#004BB7
Tritanopia (blue-blind)
#2D5673
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5631ba;
/* rgb */ color: rgb(86, 49, 186);
/* oklch */ color: oklch(44.8% 0.200 287.8);
Tailwind
colors: {
  custom: {
    50: '#906dd0',
    500: '#5631ba',
    950: '#000000',
  },
}
SCSS
$custom: #5631ba;
$custom-light: #906dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5631ba",
  "rgb": {
    "r": 86,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 256.204,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44794,
    "c": 0.19997,
    "h": 287.8
  },
  "luminance": 0.0772
}

Semantic roles & 50–950 ramp

primary
#5631BA
secondary
#B5C97E
accent
#E246B8
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5631BA

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

Preview Lab → · Contrast checker → · Palette generator →

#5631BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva