#5628A5#5628A5

#5628A5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.185 H 293.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5628A5
RGBrgb(86, 40, 165)
HSLhsl(262, 61%, 40%)
HSVhsv(262, 76%, 65%)
CMYKcmyk(47.9%, 75.8%, 0%, 35.3%)
CIE-LABlab(29.94, 48.46, -59.33)
CIE-LCHlch(29.94, 76.60, 309.24°)
OKLaboklab(41.78% 0.0738 -0.1702)
OKLCHoklch(41.78% 0.185 293.4)
XYZxyz(11.3862, 6.2123, 36.1892)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5628A5 #77A528
analogous
#2838A5 #5628A5 #9528A5
triadic
#5628A5 #A55628 #28A556
tetradic
#5628A5 #A52838 #77A528 #28A595
square
#5628A5 #A52838 #77A528 #28A595
split-complementary
#5628A5 #A59528 #38A528
monochromatic
#231042 #3C1C74 #5628A5 #713BCF #956CDB

Accessibility & contrast

On white

9.36
#5628A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5628A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5628A5
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5628A5#FFFFFF#000000##FFFFFF
##5628A51.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#3E4A65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5628a5;
/* rgb */ color: rgb(86, 40, 165);
/* oklch */ color: oklch(41.8% 0.185 293.4);
Tailwind
colors: {
  custom: {
    50: '#8e67c1',
    500: '#5628a5',
    950: '#000000',
  },
}
SCSS
$custom: #5628a5;
$custom-light: #8e67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5628a5",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 262.08,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41784,
    "c": 0.18546,
    "h": 293.4
  },
  "luminance": 0.06213
}

Semantic roles & 50–950 ramp

primary
#5628A5
secondary
#A0C267
accent
#E444A9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5628A5

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

Preview Lab → · Contrast checker → · Palette generator →

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