#5628A2#5628A2

#5628A2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.182 H 294.2°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#5628A2
RGBrgb(86, 40, 162)
HSLhsl(263, 60%, 40%)
HSVhsv(263, 75%, 64%)
CMYKcmyk(46.9%, 75.3%, 0%, 36.5%)
CIE-LABlab(29.67, 47.65, -57.95)
CIE-LCHlch(29.67, 75.02, 309.43°)
OKLaboklab(41.51% 0.0745 -0.1661)
OKLCHoklch(41.51% 0.182 294.2)
XYZxyz(11.1163, 6.1043, 34.7680)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5628A2 #74A228
analogous
#2837A2 #5628A2 #9328A2
triadic
#5628A2 #A25628 #28A256
tetradic
#5628A2 #A22837 #74A228 #28A293
square
#5628A2 #A22837 #74A228 #28A293
split-complementary
#5628A2 #A29328 #37A228
monochromatic
#221040 #3C1C71 #5628A2 #7139CE #946ADA

Accessibility & contrast

On white

9.46
#5628A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5628A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5628A2
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5628A2#FFFFFF#000000##FFFFFF
##5628A21.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#404963
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5628a2;
/* rgb */ color: rgb(86, 40, 162);
/* oklch */ color: oklch(41.5% 0.182 294.2);
Tailwind
colors: {
  custom: {
    50: '#8d67bf',
    500: '#5628a2',
    950: '#000000',
  },
}
SCSS
$custom: #5628a2;
$custom-light: #8d67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5628a2",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 262.623,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41513,
    "c": 0.18208,
    "h": 294.2
  },
  "luminance": 0.06105
}

Semantic roles & 50–950 ramp

primary
#5628A2
secondary
#9EC165
accent
#E444A7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5628A2

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

Preview Lab → · Contrast checker → · Palette generator →

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