#5128A4#5128A4

#5128A4 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.184 H 291.1°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5128A4
RGBrgb(81, 40, 164)
HSLhsl(260, 61%, 40%)
HSVhsv(260, 76%, 64%)
CMYKcmyk(50.6%, 75.6%, 0%, 35.7%)
CIE-LABlab(29.28, 47.39, -59.83)
CIE-LCHlch(29.28, 76.33, 308.38°)
OKLaboklab(41.16% 0.0664 -0.1718)
OKLCHoklch(41.16% 0.184 291.1)
XYZxyz(10.8511, 5.9468, 35.6909)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128A4 #7BA428
analogous
#283DA4 #5128A4 #8F28A4
triadic
#5128A4 #A45128 #28A451
tetradic
#5128A4 #A4283D #7BA428 #28A48F
square
#5128A4 #A4283D #7BA428 #28A48F
split-complementary
#5128A4 #A48F28 #3DA428
monochromatic
#201042 #391C73 #5128A4 #6B3ACF #906BDB

Accessibility & contrast

On white

9.59
#5128A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5128A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5128A4
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5128A4#FFFFFF#000000##FFFFFF
##5128A41.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0042A2
Tritanopia (blue-blind)
#354A64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5128a4;
/* rgb */ color: rgb(81, 40, 164);
/* oklch */ color: oklch(41.2% 0.184 291.1);
Tailwind
colors: {
  custom: {
    50: '#8a66c0',
    500: '#5128a4',
    950: '#000000',
  },
}
SCSS
$custom: #5128a4;
$custom-light: #8a66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5128a4",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 259.839,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.41158,
    "c": 0.18421,
    "h": 291.1
  },
  "luminance": 0.05947
}

Semantic roles & 50–950 ramp

primary
#5128A4
secondary
#A3C166
accent
#E444AF
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5128A4

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

Preview Lab → · Contrast checker → · Palette generator →

#5128A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva