#5028AA#5028AA

#5028AA is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.191 H 289.3°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5028AA
RGBrgb(80, 40, 170)
HSLhsl(258, 62%, 41%)
HSVhsv(258, 76%, 67%)
CMYKcmyk(52.9%, 76.5%, 0%, 33.3%)
CIE-LABlab(29.73, 48.92, -62.72)
CIE-LCHlch(29.73, 79.54, 307.95°)
OKLaboklab(41.62% 0.0633 -0.1803)
OKLCHoklch(41.62% 0.191 289.3)
XYZxyz(11.3206, 6.1248, 38.6081)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5028AA #82AA28
analogous
#2841AA #5028AA #9128AA
triadic
#5028AA #AA5028 #28AA50
tetradic
#5028AA #AA2841 #82AA28 #28AA91
square
#5028AA #AA2841 #82AA28 #28AA91
split-complementary
#5028AA #AA9128 #41AA28
monochromatic
#211147 #391C78 #5028AA #6B3ED2 #916FDD

Accessibility & contrast

On white

9.44
#5028AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5028AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5028AA#FFFFFF#000000##FFFFFF
##5028AA1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#2E4C68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5028aa;
/* rgb */ color: rgb(80, 40, 170);
/* oklch */ color: oklch(41.6% 0.191 289.3);
Tailwind
colors: {
  custom: {
    50: '#8b67c4',
    500: '#5028aa',
    950: '#000000',
  },
}
SCSS
$custom: #5028aa;
$custom-light: #8b67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5028aa",
  "rgb": {
    "r": 80,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 258.462,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41616,
    "c": 0.1911,
    "h": 289.3
  },
  "luminance": 0.06125
}

Semantic roles & 50–950 ramp

primary
#5028AA
secondary
#A8C46A
accent
#E543B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5028AA

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

Preview Lab → · Contrast checker → · Palette generator →

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