#5128A6#5128A6

#5128A6 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.186 H 290.7°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5128A6
RGBrgb(81, 40, 166)
HSLhsl(260, 61%, 40%)
HSVhsv(260, 76%, 65%)
CMYKcmyk(51.2%, 75.9%, 0%, 34.9%)
CIE-LABlab(29.46, 47.95, -60.74)
CIE-LCHlch(29.46, 77.39, 308.29°)
OKLaboklab(41.34% 0.0659 -0.1745)
OKLCHoklch(41.34% 0.187 290.7)
XYZxyz(11.0331, 6.0196, 36.6496)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128A6 #7DA628
analogous
#283EA6 #5128A6 #9028A6
triadic
#5128A6 #A65128 #28A651
tetradic
#5128A6 #A6283E #7DA628 #28A690
square
#5128A6 #A6283E #7DA628 #28A690
split-complementary
#5128A6 #A69028 #3EA628
monochromatic
#211043 #391C75 #5128A6 #6C3BD0 #916DDC

Accessibility & contrast

On white

9.53
#5128A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5128A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5128A6#FFFFFF#000000##FFFFFF
##5128A61.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#334B65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5128a6;
/* rgb */ color: rgb(81, 40, 166);
/* oklch */ color: oklch(41.3% 0.186 290.7);
Tailwind
colors: {
  custom: {
    50: '#8b67c1',
    500: '#5128a6',
    950: '#000000',
  },
}
SCSS
$custom: #5128a6;
$custom-light: #8b67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5128a6",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 259.524,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41343,
    "c": 0.1865,
    "h": 290.7
  },
  "luminance": 0.0602
}

Semantic roles & 50–950 ramp

primary
#5128A6
secondary
#A5C267
accent
#E444B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5128A6

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

Preview Lab → · Contrast checker → · Palette generator →

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