#5628A4#5628A4

#5628A4 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.184 H 293.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5628A4
RGBrgb(86, 40, 164)
HSLhsl(262, 61%, 40%)
HSVhsv(262, 76%, 64%)
CMYKcmyk(47.6%, 75.6%, 0%, 35.7%)
CIE-LABlab(29.85, 48.19, -58.87)
CIE-LCHlch(29.85, 76.08, 309.30°)
OKLaboklab(41.69% 0.074 -0.1688)
OKLCHoklch(41.69% 0.184 293.7)
XYZxyz(11.2955, 6.1760, 35.7117)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5628A4 #76A428
analogous
#2838A4 #5628A4 #9428A4
triadic
#5628A4 #A45628 #28A456
tetradic
#5628A4 #A42838 #76A428 #28A494
square
#5628A4 #A42838 #76A428 #28A494
split-complementary
#5628A4 #A49428 #38A428
monochromatic
#221042 #3C1C73 #5628A4 #713ACF #956BDB

Accessibility & contrast

On white

9.40
#5628A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5628A4
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5628A4#FFFFFF#000000##FFFFFF
##5628A41.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A8
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#3E4964
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5628a4;
/* rgb */ color: rgb(86, 40, 164);
/* oklch */ color: oklch(41.7% 0.184 293.7);
Tailwind
colors: {
  custom: {
    50: '#8d67c0',
    500: '#5628a4',
    950: '#000000',
  },
}
SCSS
$custom: #5628a4;
$custom-light: #8d67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5628a4",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 262.258,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.41693,
    "c": 0.18434,
    "h": 293.7
  },
  "luminance": 0.06176
}

Semantic roles & 50–950 ramp

primary
#5628A4
secondary
#A0C166
accent
#E444A9
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5628A4

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

Preview Lab → · Contrast checker → · Palette generator →

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