#5128A3#5128A3

#5128A3 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.183 H 291.4°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5128A3
RGBrgb(81, 40, 163)
HSLhsl(260, 61%, 40%)
HSVhsv(260, 75%, 64%)
CMYKcmyk(50.3%, 75.5%, 0%, 36.1%)
CIE-LABlab(29.19, 47.12, -59.38)
CIE-LCHlch(29.19, 75.80, 308.43°)
OKLaboklab(41.07% 0.0667 -0.1705)
OKLCHoklch(41.07% 0.183 291.4)
XYZxyz(10.7611, 5.9108, 35.2171)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128A3 #7AA328
analogous
#283DA3 #5128A3 #8F28A3
triadic
#5128A3 #A35128 #28A351
tetradic
#5128A3 #A3283D #7AA328 #28A38F
square
#5128A3 #A3283D #7AA328 #28A38F
split-complementary
#5128A3 #A38F28 #3DA328
monochromatic
#201041 #391C72 #5128A3 #6B3ACF #906BDB

Accessibility & contrast

On white

9.62
#5128A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5128A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5128A3#FFFFFF#000000##FFFFFF
##5128A31.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A7
Deuteranopia (green-blind)
#0042A1
Tritanopia (blue-blind)
#354964
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5128a3;
/* rgb */ color: rgb(81, 40, 163);
/* oklch */ color: oklch(41.1% 0.183 291.4);
Tailwind
colors: {
  custom: {
    50: '#8a66bf',
    500: '#5128a3',
    950: '#000000',
  },
}
SCSS
$custom: #5128a3;
$custom-light: #8a66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5128a3",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 260,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41065,
    "c": 0.18306,
    "h": 291.4
  },
  "luminance": 0.05911
}

Semantic roles & 50–950 ramp

primary
#5128A3
secondary
#A3C166
accent
#E444AF
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5128A3

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

Preview Lab → · Contrast checker → · Palette generator →

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