#5028B6#5028B6

#5028B6 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.8% C 0.205 H 287.0°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5028B6
RGBrgb(80, 40, 182)
HSLhsl(257, 64%, 44%)
HSVhsv(257, 78%, 71%)
CMYKcmyk(56%, 78%, 0%, 28.6%)
CIE-LABlab(30.88, 52.26, -68.00)
CIE-LCHlch(30.88, 85.76, 307.55°)
OKLaboklab(42.77% 0.0599 -0.1957)
OKLCHoklch(42.77% 0.205 287)
XYZxyz(12.5080, 6.5998, 44.8617)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5028B6 #8EB628
analogous
#2847B6 #5028B6 #9728B6
triadic
#5028B6 #B65028 #28B650
tetradic
#5028B6 #B62847 #8EB628 #28B697
square
#5028B6 #B62847 #8EB628 #28B697
split-complementary
#5028B6 #B69728 #47B628
monochromatic
#241252 #3A1D84 #5028B6 #6E45D6 #9577E1

Accessibility & contrast

On white

9.05
#5028B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5028B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5028B6#FFFFFF#000000##FFFFFF
##5028B61.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#21516E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5028b6;
/* rgb */ color: rgb(80, 40, 182);
/* oklch */ color: oklch(42.8% 0.205 287.0);
Tailwind
colors: {
  custom: {
    50: '#8d67cd',
    500: '#5028b6',
    950: '#000000',
  },
}
SCSS
$custom: #5028b6;
$custom-light: #8d67cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5028b6",
  "rgb": {
    "r": 80,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 256.901,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42771,
    "c": 0.2047,
    "h": 287
  },
  "luminance": 0.066
}

Semantic roles & 50–950 ramp

primary
#5028B6
secondary
#B0C971
accent
#E741B8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #5028B6

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

Preview Lab → · Contrast checker → · Palette generator →

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