#5628A3#5628A3

#5628A3 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.183 H 293.9°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5628A3
RGBrgb(86, 40, 163)
HSLhsl(262, 61%, 40%)
HSVhsv(262, 75%, 64%)
CMYKcmyk(47.2%, 75.5%, 0%, 36.1%)
CIE-LABlab(29.76, 47.92, -58.41)
CIE-LCHlch(29.76, 75.55, 309.36°)
OKLaboklab(41.6% 0.0743 -0.1675)
OKLCHoklch(41.6% 0.183 293.9)
XYZxyz(11.2056, 6.1400, 35.2380)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5628A3 #75A328
analogous
#2838A3 #5628A3 #9428A3
triadic
#5628A3 #A35628 #28A356
tetradic
#5628A3 #A32838 #75A328 #28A394
square
#5628A3 #A32838 #75A328 #28A394
split-complementary
#5628A3 #A39428 #38A328
monochromatic
#221041 #3C1C72 #5628A3 #713ACF #956BDB

Accessibility & contrast

On white

9.43
#5628A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5628A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5628A3
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5628A3#FFFFFF#000000##FFFFFF
##5628A31.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A7
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#3F4964
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5628a3;
/* rgb */ color: rgb(86, 40, 163);
/* oklch */ color: oklch(41.6% 0.183 293.9);
Tailwind
colors: {
  custom: {
    50: '#8d67bf',
    500: '#5628a3',
    950: '#000000',
  },
}
SCSS
$custom: #5628a3;
$custom-light: #8d67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5628a3",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 262.439,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41603,
    "c": 0.1832,
    "h": 293.9
  },
  "luminance": 0.0614
}

Semantic roles & 50–950 ramp

primary
#5628A3
secondary
#9FC166
accent
#E444A8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5628A3

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

Preview Lab → · Contrast checker → · Palette generator →

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