#5028AC#5028AC

#5028AC is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.193 H 288.9°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5028AC
RGBrgb(80, 40, 172)
HSLhsl(258, 62%, 42%)
HSVhsv(258, 77%, 67%)
CMYKcmyk(53.5%, 76.7%, 0%, 32.5%)
CIE-LABlab(29.91, 49.47, -63.61)
CIE-LCHlch(29.91, 80.59, 307.87°)
OKLaboklab(41.81% 0.0628 -0.1829)
OKLCHoklch(41.81% 0.193 288.9)
XYZxyz(11.5113, 6.2011, 39.6121)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5028AC #84AC28
analogous
#2842AC #5028AC #9228AC
triadic
#5028AC #AC5028 #28AC50
tetradic
#5028AC #AC2842 #84AC28 #28AC92
square
#5028AC #AC2842 #84AC28 #28AC92
split-complementary
#5028AC #AC9228 #42AC28
monochromatic
#221149 #391C7A #5028AC #6C3FD2 #9271DE

Accessibility & contrast

On white

9.37
#5028AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5028AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5028AC#FFFFFF#000000##FFFFFF
##5028AC1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#0043AA
Tritanopia (blue-blind)
#2C4D69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5028ac;
/* rgb */ color: rgb(80, 40, 172);
/* oklch */ color: oklch(41.8% 0.193 288.9);
Tailwind
colors: {
  custom: {
    50: '#8b67c6',
    500: '#5028ac',
    950: '#000000',
  },
}
SCSS
$custom: #5028ac;
$custom-light: #8b67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5028ac",
  "rgb": {
    "r": 80,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 258.182,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41806,
    "c": 0.19338,
    "h": 288.9
  },
  "luminance": 0.06202
}

Semantic roles & 50–950 ramp

primary
#5028AC
secondary
#AAC56B
accent
#E542B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5028AC

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

Preview Lab → · Contrast checker → · Palette generator →

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