#5028BC#5028BC

#5028BC is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.4% C 0.211 H 285.9°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5028BC
RGBrgb(80, 40, 188)
HSLhsl(256, 65%, 45%)
HSVhsv(256, 79%, 74%)
CMYKcmyk(57.4%, 78.7%, 0%, 26.3%)
CIE-LABlab(31.47, 53.93, -70.58)
CIE-LCHlch(31.47, 88.83, 307.39°)
OKLaboklab(43.36% 0.0581 -0.2033)
OKLCHoklch(43.36% 0.211 285.9)
XYZxyz(13.1414, 6.8531, 48.1975)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5028BC #94BC28
analogous
#284ABC #5028BC #9A28BC
triadic
#5028BC #BC5028 #28BC50
tetradic
#5028BC #BC284A #94BC28 #28BC9A
square
#5028BC #BC284A #94BC28 #28BC9A
split-complementary
#5028BC #BC9A28 #4ABC28
monochromatic
#251357 #3B1D8A #5028BC #7049D8 #977BE3

Accessibility & contrast

On white

8.86
#5028BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5028BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5028BC
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5028BC#FFFFFF#000000##FFFFFF
##5028BC1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0046B9
Tritanopia (blue-blind)
#185472
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5028bc;
/* rgb */ color: rgb(80, 40, 188);
/* oklch */ color: oklch(43.4% 0.211 285.9);
Tailwind
colors: {
  custom: {
    50: '#8e68d1',
    500: '#5028bc',
    950: '#000000',
  },
}
SCSS
$custom: #5028bc;
$custom-light: #8e68d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5028bc",
  "rgb": {
    "r": 80,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 256.216,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43361,
    "c": 0.21141,
    "h": 285.9
  },
  "luminance": 0.06854
}

Semantic roles & 50–950 ramp

primary
#5028BC
secondary
#B4CB75
accent
#E840BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5028BC

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

Preview Lab → · Contrast checker → · Palette generator →

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