#5028BD#5028BD

#5028BD is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.5% C 0.213 H 285.8°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5028BD
RGBrgb(80, 40, 189)
HSLhsl(256, 65%, 45%)
HSVhsv(256, 79%, 74%)
CMYKcmyk(57.7%, 78.8%, 0%, 25.9%)
CIE-LABlab(31.57, 54.21, -71.00)
CIE-LCHlch(31.57, 89.33, 307.36°)
OKLaboklab(43.46% 0.0578 -0.2045)
OKLCHoklch(43.46% 0.213 285.8)
XYZxyz(13.2496, 6.8964, 48.7672)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5028BD #95BD28
analogous
#284BBD #5028BD #9A28BD
triadic
#5028BD #BD5028 #28BD50
tetradic
#5028BD #BD284B #95BD28 #28BD9A
square
#5028BD #BD284B #95BD28 #28BD9A
split-complementary
#5028BD #BD9A28 #4BBD28
monochromatic
#251358 #3B1D8A #5028BD #704AD9 #987CE3

Accessibility & contrast

On white

8.83
#5028BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5028BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5028BD
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5028BD#FFFFFF#000000##FFFFFF
##5028BD1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0046BA
Tritanopia (blue-blind)
#165472
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5028bd;
/* rgb */ color: rgb(80, 40, 189);
/* oklch */ color: oklch(43.5% 0.213 285.8);
Tailwind
colors: {
  custom: {
    50: '#8e68d2',
    500: '#5028bd',
    950: '#000000',
  },
}
SCSS
$custom: #5028bd;
$custom-light: #8e68d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5028bd",
  "rgb": {
    "r": 80,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 256.107,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4346,
    "c": 0.21253,
    "h": 285.8
  },
  "luminance": 0.06897
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5028BD

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

Preview Lab → · Contrast checker → · Palette generator →

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