#5028B2#5028B2

#5028B2 is a dark, highly saturated violet. Relative luminance 0.064; OKLCH L 42.4% C 0.200 H 287.8°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#5028B2
RGBrgb(80, 40, 178)
HSLhsl(257, 63%, 43%)
HSVhsv(257, 78%, 70%)
CMYKcmyk(55.1%, 77.5%, 0%, 30.2%)
CIE-LABlab(30.49, 51.15, -66.26)
CIE-LCHlch(30.49, 83.70, 307.67°)
OKLaboklab(42.38% 0.061 -0.1907)
OKLCHoklch(42.38% 0.2 287.8)
XYZxyz(12.1006, 6.4368, 42.7157)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5028B2 #8AB228
analogous
#2845B2 #5028B2 #9528B2
triadic
#5028B2 #B25028 #28B250
tetradic
#5028B2 #B22845 #8AB228 #28B295
square
#5028B2 #B22845 #8AB228 #28B295
split-complementary
#5028B2 #B29528 #45B228
monochromatic
#23124E #3A1D80 #5028B2 #6D43D5 #9475E0

Accessibility & contrast

On white

9.18
#5028B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5028B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5028B2#FFFFFF#000000##FFFFFF
##5028B21.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0044AF
Tritanopia (blue-blind)
#264F6C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5028b2;
/* rgb */ color: rgb(80, 40, 178);
/* oklch */ color: oklch(42.4% 0.200 287.8);
Tailwind
colors: {
  custom: {
    50: '#8c67ca',
    500: '#5028b2',
    950: '#000000',
  },
}
SCSS
$custom: #5028b2;
$custom-light: #8c67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5028b2",
  "rgb": {
    "r": 80,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 257.391,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42382,
    "c": 0.20019,
    "h": 287.8
  },
  "luminance": 0.06437
}

Semantic roles & 50–950 ramp

primary
#5028B2
secondary
#AEC76F
accent
#E641B7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5028B2

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

Preview Lab → · Contrast checker → · Palette generator →

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