#5628AF#5628AF

#5628AF is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.197 H 291.2°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#5628AF
RGBrgb(86, 40, 175)
HSLhsl(260, 63%, 42%)
HSVhsv(260, 77%, 69%)
CMYKcmyk(50.9%, 77.1%, 0%, 31.4%)
CIE-LABlab(30.86, 51.16, -63.84)
CIE-LCHlch(30.86, 81.81, 308.71°)
OKLaboklab(42.7% 0.071 -0.1834)
OKLCHoklch(42.7% 0.197 291.2)
XYZxyz(12.3322, 6.5907, 41.1715)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5628AF #81AF28
analogous
#283EAF #5628AF #9928AF
triadic
#5628AF #AF5628 #28AF56
tetradic
#5628AF #AF283E #81AF28 #28AF99
square
#5628AF #AF283E #81AF28 #28AF99
split-complementary
#5628AF #AF9928 #3EAF28
monochromatic
#25114B #3E1D7D #5628AF #7341D4 #9773DF

Accessibility & contrast

On white

9.06
#5628AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5628AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5628AF
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5628AF#FFFFFF#000000##FFFFFF
##5628AF1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#374E6A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5628af;
/* rgb */ color: rgb(86, 40, 175);
/* oklch */ color: oklch(42.7% 0.197 291.2);
Tailwind
colors: {
  custom: {
    50: '#8f67c8',
    500: '#5628af',
    950: '#000000',
  },
}
SCSS
$custom: #5628af;
$custom-light: #8f67c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5628af",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 260.444,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42704,
    "c": 0.19666,
    "h": 291.2
  },
  "luminance": 0.06591
}

Semantic roles & 50–950 ramp

primary
#5628AF
secondary
#A8C66D
accent
#E642AE
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5628AF

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

Preview Lab → · Contrast checker → · Palette generator →

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