#5628A9#5628A9

#5628A9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.190 H 292.5°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5628A9
RGBrgb(86, 40, 169)
HSLhsl(261, 62%, 41%)
HSVhsv(261, 76%, 66%)
CMYKcmyk(49.1%, 76.3%, 0%, 33.7%)
CIE-LABlab(30.30, 49.54, -61.15)
CIE-LCHlch(30.30, 78.69, 309.01°)
OKLaboklab(42.15% 0.0727 -0.1755)
OKLCHoklch(42.15% 0.19 292.5)
XYZxyz(11.7560, 6.3602, 38.1366)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5628A9 #7BA928
analogous
#283BA9 #5628A9 #9628A9
triadic
#5628A9 #A95628 #28A956
tetradic
#5628A9 #A9283B #7BA928 #28A996
square
#5628A9 #A9283B #7BA928 #28A996
split-complementary
#5628A9 #A99628 #3BA928
monochromatic
#241146 #3D1C78 #5628A9 #723DD1 #966FDD

Accessibility & contrast

On white

9.24
#5628A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5628A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5628A9
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5628A9#FFFFFF#000000##FFFFFF
##5628A91.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#3B4B67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5628a9;
/* rgb */ color: rgb(86, 40, 169);
/* oklch */ color: oklch(42.1% 0.190 292.5);
Tailwind
colors: {
  custom: {
    50: '#8e67c4',
    500: '#5628a9',
    950: '#000000',
  },
}
SCSS
$custom: #5628a9;
$custom-light: #8e67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5628a9",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 261.395,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42148,
    "c": 0.18996,
    "h": 292.5
  },
  "luminance": 0.06361
}

Semantic roles & 50–950 ramp

primary
#5628A9
secondary
#A3C469
accent
#E543AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5628A9

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

Preview Lab → · Contrast checker → · Palette generator →

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