#5128AE#5128AE

#5128AE is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.196 H 289.0°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5128AE
RGBrgb(81, 40, 174)
HSLhsl(258, 63%, 42%)
HSVhsv(258, 77%, 68%)
CMYKcmyk(53.4%, 77%, 0%, 31.8%)
CIE-LABlab(30.21, 50.17, -64.32)
CIE-LCHlch(30.21, 81.57, 307.96°)
OKLaboklab(42.1% 0.0637 -0.1849)
OKLCHoklch(42.1% 0.196 289)
XYZxyz(11.7899, 6.3223, 40.6353)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5128AE #85AE28
analogous
#2842AE #5128AE #9428AE
triadic
#5128AE #AE5128 #28AE51
tetradic
#5128AE #AE2842 #85AE28 #28AE94
square
#5128AE #AE2842 #85AE28 #28AE94
split-complementary
#5128AE #AE9428 #42AE28
monochromatic
#23114A #3A1D7C #5128AE #6D40D3 #9372DF

Accessibility & contrast

On white

9.27
#5128AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5128AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5128AE#FFFFFF#000000##FFFFFF
##5128AE1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#2D4E6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5128ae;
/* rgb */ color: rgb(81, 40, 174);
/* oklch */ color: oklch(42.1% 0.196 289.0);
Tailwind
colors: {
  custom: {
    50: '#8c67c7',
    500: '#5128ae',
    950: '#000000',
  },
}
SCSS
$custom: #5128ae;
$custom-light: #8c67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5128ae",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 258.358,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42097,
    "c": 0.19562,
    "h": 289
  },
  "luminance": 0.06323
}

Semantic roles & 50–950 ramp

primary
#5128AE
secondary
#AAC66C
accent
#E642B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5128AE

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

Preview Lab → · Contrast checker → · Palette generator →

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