#5631A2#5631A2

#5631A2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.172 H 292.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5631A2
RGBrgb(86, 49, 162)
HSLhsl(260, 54%, 41%)
HSVhsv(260, 70%, 64%)
CMYKcmyk(46.9%, 69.8%, 0%, 36.5%)
CIE-LABlab(31.31, 43.07, -55.28)
CIE-LCHlch(31.31, 70.08, 307.92°)
OKLaboklab(42.67% 0.0661 -0.1583)
OKLCHoklch(42.67% 0.172 292.6)
XYZxyz(11.4558, 6.7833, 34.8811)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5631A2 #7DA231
analogous
#3145A2 #5631A2 #8F31A2
triadic
#5631A2 #A25631 #31A256
tetradic
#5631A2 #A23145 #7DA231 #31A28F
square
#5631A2 #A23145 #7DA231 #31A28F
split-complementary
#5631A2 #A28F31 #45A231
monochromatic
#241544 #3D2373 #5631A2 #7248C8 #9677D6

Accessibility & contrast

On white

8.91
#5631A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5631A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5631A2
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5631A2#FFFFFF#000000##FFFFFF
##5631A21.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#3F4D65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5631a2;
/* rgb */ color: rgb(86, 49, 162);
/* oklch */ color: oklch(42.7% 0.172 292.6);
Tailwind
colors: {
  custom: {
    50: '#8d6cbe',
    500: '#5631a2',
    950: '#000000',
  },
}
SCSS
$custom: #5631a2;
$custom-light: #8d6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5631a2",
  "rgb": {
    "r": 86,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 259.646,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42672,
    "c": 0.17156,
    "h": 292.6
  },
  "luminance": 0.06784
}

Semantic roles & 50–950 ramp

primary
#5631A2
secondary
#A5BE71
accent
#DD4BAD
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5631A2

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

Preview Lab → · Contrast checker → · Palette generator →

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