#5428E2#5428E2

#5428E2 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.6% C 0.252 H 281.9°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5428E2
RGBrgb(84, 40, 226)
HSLhsl(254, 76%, 52%)
HSVhsv(254, 82%, 89%)
CMYKcmyk(62.8%, 82.3%, 0%, 11.4%)
CIE-LABlab(35.78, 64.69, -85.54)
CIE-LCHlch(35.78, 107.25, 307.10°)
OKLaboklab(47.59% 0.0519 -0.2468)
OKLCHoklch(47.59% 0.252 281.9)
XYZxyz(18.1381, 8.8920, 72.6973)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5428E2 #B6E228
analogous
#2859E2 #5428E2 #B128E2
triadic
#5428E2 #E25428 #28E254
tetradic
#5428E2 #E22859 #B6E228 #28E2B1
square
#5428E2 #E22859 #B6E228 #28E2B1
split-complementary
#5428E2 #E2B128 #59E228
monochromatic
#2B117F #3D18B4 #5428E2 #7F5EE9 #AA94F1

Accessibility & contrast

On white

7.56
#5428E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5428E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5428E2
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5428E2#FFFFFF#000000##FFFFFF
##5428E21.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5428e2;
/* rgb */ color: rgb(84, 40, 226);
/* oklch */ color: oklch(47.6% 0.252 281.9);
Tailwind
colors: {
  custom: {
    50: '#966aed',
    500: '#5428e2',
    950: '#000000',
  },
}
SCSS
$custom: #5428e2;
$custom-light: #966aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5428e2",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 254.194,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47588,
    "c": 0.25216,
    "h": 281.9
  },
  "luminance": 0.08893
}

Semantic roles & 50–950 ramp

primary
#5428E2
secondary
#C8DC8A
accent
#F335C6
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #5428E2

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

Preview Lab → · Contrast checker → · Palette generator →

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