#5028E2#5028E2

#5028E2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.3% C 0.253 H 280.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5028E2
RGBrgb(80, 40, 226)
HSLhsl(253, 76%, 52%)
HSVhsv(253, 82%, 89%)
CMYKcmyk(64.6%, 82.3%, 0%, 11.4%)
CIE-LABlab(35.42, 64.35, -86.13)
CIE-LCHlch(35.42, 107.51, 306.77°)
OKLaboklab(47.26% 0.046 -0.2486)
OKLCHoklch(47.26% 0.253 280.5)
XYZxyz(17.7902, 8.7126, 72.6810)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5028E2 #BAE228
analogous
#285DE2 #5028E2 #AD28E2
triadic
#5028E2 #E25028 #28E250
tetradic
#5028E2 #E2285D #BAE228 #28E2AD
square
#5028E2 #E2285D #BAE228 #28E2AD
split-complementary
#5028E2 #E2AD28 #5DE228
monochromatic
#29117F #3A18B4 #5028E2 #7C5EE9 #A894F1

Accessibility & contrast

On white

7.66
#5028E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5028E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5028E2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5028E2#FFFFFF#000000##FFFFFF
##5028E21.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5028e2;
/* rgb */ color: rgb(80, 40, 226);
/* oklch */ color: oklch(47.3% 0.253 280.5);
Tailwind
colors: {
  custom: {
    50: '#946aed',
    500: '#5028e2',
    950: '#000000',
  },
}
SCSS
$custom: #5028e2;
$custom-light: #946aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5028e2",
  "rgb": {
    "r": 80,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 252.903,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47262,
    "c": 0.2528,
    "h": 280.5
  },
  "luminance": 0.08714
}

Semantic roles & 50–950 ramp

primary
#5028E2
secondary
#CADC8A
accent
#F335CA
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #5028E2

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

Preview Lab → · Contrast checker → · Palette generator →

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