#5631B2#5631B2

#5631B2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.191 H 289.3°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#5631B2
RGBrgb(86, 49, 178)
HSLhsl(257, 57%, 45%)
HSVhsv(257, 72%, 70%)
CMYKcmyk(51.7%, 72.5%, 0%, 30.2%)
CIE-LABlab(32.68, 47.60, -62.64)
CIE-LCHlch(32.68, 78.68, 307.23°)
OKLaboklab(44.07% 0.0629 -0.1799)
OKLCHoklch(44.07% 0.191 289.3)
XYZxyz(12.9696, 7.3888, 42.8537)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5631B2 #8DB231
analogous
#314DB2 #5631B2 #9631B2
triadic
#5631B2 #B25631 #31B256
tetradic
#5631B2 #B2314D #8DB231 #31B296
square
#5631B2 #B2314D #8DB231 #31B296
split-complementary
#5631B2 #B29631 #4DB231
monochromatic
#281752 #3F2482 #5631B2 #7551CF #9B81DC

Accessibility & contrast

On white

8.48
#5631B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5631B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5631B2
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5631B2#FFFFFF#000000##FFFFFF
##5631B21.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#34536E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5631b2;
/* rgb */ color: rgb(86, 49, 178);
/* oklch */ color: oklch(44.1% 0.191 289.3);
Tailwind
colors: {
  custom: {
    50: '#8f6dca',
    500: '#5631b2',
    950: '#000000',
  },
}
SCSS
$custom: #5631b2;
$custom-light: #8f6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5631b2",
  "rgb": {
    "r": 86,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 257.209,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44069,
    "c": 0.19062,
    "h": 289.3
  },
  "luminance": 0.07389
}

Semantic roles & 50–950 ramp

primary
#5631B2
secondary
#B0C579
accent
#E048B4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5631B2

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

Preview Lab → · Contrast checker → · Palette generator →

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