#5628AC#5628AC

#5628AC is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.193 H 291.8°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5628AC
RGBrgb(86, 40, 172)
HSLhsl(261, 62%, 42%)
HSVhsv(261, 77%, 67%)
CMYKcmyk(50%, 76.7%, 0%, 32.5%)
CIE-LABlab(30.58, 50.35, -62.50)
CIE-LCHlch(30.58, 80.25, 308.85°)
OKLaboklab(42.43% 0.0719 -0.1794)
OKLCHoklch(42.43% 0.193 291.8)
XYZxyz(12.0408, 6.4741, 39.6369)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5628AC #7EAC28
analogous
#283CAC #5628AC #9828AC
triadic
#5628AC #AC5628 #28AC56
tetradic
#5628AC #AC283C #7EAC28 #28AC98
square
#5628AC #AC283C #7EAC28 #28AC98
split-complementary
#5628AC #AC9828 #3CAC28
monochromatic
#241149 #3D1C7A #5628AC #723FD2 #9771DE

Accessibility & contrast

On white

9.15
#5628AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5628AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5628AC
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5628AC#FFFFFF#000000##FFFFFF
##5628AC1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#394D69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5628ac;
/* rgb */ color: rgb(86, 40, 172);
/* oklch */ color: oklch(42.4% 0.193 291.8);
Tailwind
colors: {
  custom: {
    50: '#8f67c6',
    500: '#5628ac',
    950: '#000000',
  },
}
SCSS
$custom: #5628ac;
$custom-light: #8f67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5628ac",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 260.909,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42425,
    "c": 0.19331,
    "h": 291.8
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#5628AC
secondary
#A6C56B
accent
#E542AD
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5628AC

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

Preview Lab → · Contrast checker → · Palette generator →

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