#5631B5#5631B5

#5631B5 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.194 H 288.7°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5631B5
RGBrgb(86, 49, 181)
HSLhsl(257, 57%, 45%)
HSVhsv(257, 73%, 71%)
CMYKcmyk(52.5%, 72.9%, 0%, 29%)
CIE-LABlab(32.94, 48.46, -63.99)
CIE-LCHlch(32.94, 80.27, 307.13°)
OKLaboklab(44.34% 0.0622 -0.1839)
OKLCHoklch(44.34% 0.194 288.7)
XYZxyz(13.2741, 7.5106, 44.4574)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5631B5 #90B531
analogous
#314EB5 #5631B5 #9831B5
triadic
#5631B5 #B55631 #31B556
tetradic
#5631B5 #B5314E #90B531 #31B598
square
#5631B5 #B5314E #90B531 #31B598
split-complementary
#5631B5 #B59831 #4EB531
monochromatic
#281755 #3F2485 #5631B5 #7653D0 #9C83DD

Accessibility & contrast

On white

8.39
#5631B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5631B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5631B5
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5631B5#FFFFFF#000000##FFFFFF
##5631B51.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004AB2
Tritanopia (blue-blind)
#325470
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5631b5;
/* rgb */ color: rgb(86, 49, 181);
/* oklch */ color: oklch(44.3% 0.194 288.7);
Tailwind
colors: {
  custom: {
    50: '#8f6dcc',
    500: '#5631b5',
    950: '#000000',
  },
}
SCSS
$custom: #5631b5;
$custom-light: #8f6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5631b5",
  "rgb": {
    "r": 86,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 256.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44339,
    "c": 0.19414,
    "h": 288.7
  },
  "luminance": 0.07511
}

Semantic roles & 50–950 ramp

primary
#5631B5
secondary
#B2C77B
accent
#E147B6
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5631B5

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

Preview Lab → · Contrast checker → · Palette generator →

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