#5128AA#5128AA

#5128AA is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.191 H 289.8°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5128AA
RGBrgb(81, 40, 170)
HSLhsl(259, 62%, 41%)
HSVhsv(259, 76%, 67%)
CMYKcmyk(52.4%, 76.5%, 0%, 33.3%)
CIE-LABlab(29.83, 49.06, -62.54)
CIE-LCHlch(29.83, 79.49, 308.11°)
OKLaboklab(41.72% 0.0648 -0.1797)
OKLCHoklch(41.72% 0.191 289.8)
XYZxyz(11.4057, 6.1687, 38.6121)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128AA #81AA28
analogous
#2840AA #5128AA #9228AA
triadic
#5128AA #AA5128 #28AA51
tetradic
#5128AA #AA2840 #81AA28 #28AA92
square
#5128AA #AA2840 #81AA28 #28AA92
split-complementary
#5128AA #AA9228 #40AA28
monochromatic
#221147 #391C78 #5128AA #6C3ED2 #926FDD

Accessibility & contrast

On white

9.40
#5128AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##5128AA#FFFFFF#000000##FFFFFF
##5128AA1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#304C68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5128aa;
/* rgb */ color: rgb(81, 40, 170);
/* oklch */ color: oklch(41.7% 0.191 289.8);
Tailwind
colors: {
  custom: {
    50: '#8b67c4',
    500: '#5128aa',
    950: '#000000',
  },
}
SCSS
$custom: #5128aa;
$custom-light: #8b67c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5128aa",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 258.923,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41718,
    "c": 0.19107,
    "h": 289.8
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#5128AA
secondary
#A8C46A
accent
#E543B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5128AA

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

Preview Lab → · Contrast checker → · Palette generator →

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