#5628E2#5628E2

#5628E2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.8% C 0.252 H 282.6°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5628E2
RGBrgb(86, 40, 226)
HSLhsl(255, 76%, 52%)
HSVhsv(255, 82%, 89%)
CMYKcmyk(61.9%, 82.3%, 0%, 11.4%)
CIE-LABlab(35.96, 64.87, -85.23)
CIE-LCHlch(35.96, 107.11, 307.28°)
OKLaboklab(47.76% 0.0548 -0.2458)
OKLCHoklch(47.76% 0.252 282.6)
XYZxyz(18.3197, 8.9857, 72.7058)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5628E2 #B4E228
analogous
#2857E2 #5628E2 #B328E2
triadic
#5628E2 #E25628 #28E256
tetradic
#5628E2 #E22857 #B4E228 #28E2B3
square
#5628E2 #E22857 #B4E228 #28E2B3
split-complementary
#5628E2 #E2B328 #57E228
monochromatic
#2C117F #3F18B4 #5628E2 #805EE9 #AB94F1

Accessibility & contrast

On white

7.51
#5628E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5628E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5628E2
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5628E2#FFFFFF#000000##FFFFFF
##5628E21.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AE7
Deuteranopia (green-blind)
#004EDF
Tritanopia (blue-blind)
#006388
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5628e2;
/* rgb */ color: rgb(86, 40, 226);
/* oklch */ color: oklch(47.8% 0.252 282.6);
Tailwind
colors: {
  custom: {
    50: '#976bed',
    500: '#5628e2',
    950: '#000000',
  },
}
SCSS
$custom: #5628e2;
$custom-light: #976bed;
$custom-dark: #000000;
JSON
{
  "hex": "#5628e2",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 254.839,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47757,
    "c": 0.25187,
    "h": 282.6
  },
  "luminance": 0.08987
}

Semantic roles & 50–950 ramp

primary
#5628E2
secondary
#C7DC8A
accent
#F335C4
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #5628E2

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

Preview Lab → · Contrast checker → · Palette generator →

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