#5128A5#5128A5

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

Color values

HEX#5128A5
RGBrgb(81, 40, 165)
HSLhsl(260, 61%, 40%)
HSVhsv(260, 76%, 65%)
CMYKcmyk(50.9%, 75.8%, 0%, 35.3%)
CIE-LABlab(29.37, 47.67, -60.29)
CIE-LCHlch(29.37, 76.86, 308.33°)
OKLaboklab(41.25% 0.0662 -0.1731)
OKLCHoklch(41.25% 0.185 290.9)
XYZxyz(10.9417, 5.9831, 36.1683)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128A5 #7CA528
analogous
#283DA5 #5128A5 #8F28A5
triadic
#5128A5 #A55128 #28A551
tetradic
#5128A5 #A5283D #7CA528 #28A58F
square
#5128A5 #A5283D #7CA528 #28A58F
split-complementary
#5128A5 #A58F28 #3DA528
monochromatic
#211042 #391C74 #5128A5 #6C3BCF #916CDB

Accessibility & contrast

On white

9.56
#5128A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##5128A5#FFFFFF#000000##FFFFFF
##5128A51.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#344A65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5128a5;
/* rgb */ color: rgb(81, 40, 165);
/* oklch */ color: oklch(41.3% 0.185 290.9);
Tailwind
colors: {
  custom: {
    50: '#8b66c1',
    500: '#5128a5',
    950: '#000000',
  },
}
SCSS
$custom: #5128a5;
$custom-light: #8b66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5128a5",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 259.68,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4125,
    "c": 0.18536,
    "h": 290.9
  },
  "luminance": 0.05984
}

Semantic roles & 50–950 ramp

primary
#5128A5
secondary
#A4C267
accent
#E444AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5128A5

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

Preview Lab → · Contrast checker → · Palette generator →

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