#5128A9#5128A9

#5128A9 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.190 H 290.0°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5128A9
RGBrgb(81, 40, 169)
HSLhsl(259, 62%, 41%)
HSVhsv(259, 76%, 66%)
CMYKcmyk(52.1%, 76.3%, 0%, 33.7%)
CIE-LABlab(29.74, 48.78, -62.09)
CIE-LCHlch(29.74, 78.96, 308.16°)
OKLaboklab(41.62% 0.0651 -0.1784)
OKLCHoklch(41.62% 0.19 290)
XYZxyz(11.3115, 6.1310, 38.1158)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128A9 #80A928
analogous
#283FA9 #5128A9 #9128A9
triadic
#5128A9 #A95128 #28A951
tetradic
#5128A9 #A9283F #80A928 #28A991
square
#5128A9 #A9283F #80A928 #28A991
split-complementary
#5128A9 #A99128 #3FA928
monochromatic
#221146 #391C78 #5128A9 #6C3DD1 #926FDD

Accessibility & contrast

On white

9.43
#5128A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5128A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5128A9
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5128A9#FFFFFF#000000##FFFFFF
##5128A91.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0043A7
Tritanopia (blue-blind)
#314C67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5128a9;
/* rgb */ color: rgb(81, 40, 169);
/* oklch */ color: oklch(41.6% 0.190 290.0);
Tailwind
colors: {
  custom: {
    50: '#8b67c4',
    500: '#5128a9',
    950: '#000000',
  },
}
SCSS
$custom: #5128a9;
$custom-light: #8b67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5128a9",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 259.07,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41624,
    "c": 0.18993,
    "h": 290
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#5128A9
secondary
#A7C469
accent
#E543B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5128A9

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

Preview Lab → · Contrast checker → · Palette generator →

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