#5128A0#5128A0

#5128A0 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.180 H 292.1°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5128A0
RGBrgb(81, 40, 160)
HSLhsl(261, 60%, 39%)
HSVhsv(261, 75%, 63%)
CMYKcmyk(49.4%, 75%, 0%, 37.3%)
CIE-LABlab(28.91, 46.28, -58.01)
CIE-LCHlch(28.91, 74.21, 308.59°)
OKLaboklab(40.79% 0.0675 -0.1665)
OKLCHoklch(40.79% 0.18 292.1)
XYZxyz(10.4955, 5.8046, 33.8183)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128A0 #77A028
analogous
#283BA0 #5128A0 #8D28A0
triadic
#5128A0 #A05128 #28A051
tetradic
#5128A0 #A0283B #77A028 #28A08D
square
#5128A0 #A0283B #77A028 #28A08D
split-complementary
#5128A0 #A08D28 #3BA028
monochromatic
#1F103E #381C6F #5128A0 #6B38CD #8F69D9

Accessibility & contrast

On white

9.72
#5128A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5128A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5128A0#FFFFFF#000000##FFFFFF
##5128A01.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#374862
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5128a0;
/* rgb */ color: rgb(81, 40, 160);
/* oklch */ color: oklch(40.8% 0.180 292.1);
Tailwind
colors: {
  custom: {
    50: '#8a66bd',
    500: '#5128a0',
    950: '#000000',
  },
}
SCSS
$custom: #5128a0;
$custom-light: #8a66bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5128a0",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 160
  },
  "hsl": {
    "h": 260.5,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4079,
    "c": 0.17961,
    "h": 292.1
  },
  "luminance": 0.05805
}

Semantic roles & 50–950 ramp

primary
#5128A0
secondary
#A0C064
accent
#E345AD
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #5128A0

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

Preview Lab → · Contrast checker → · Palette generator →

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