#5131AC#5131AC

#5131AC is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.184 H 288.0°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5131AC
RGBrgb(81, 49, 172)
HSLhsl(256, 56%, 43%)
HSVhsv(256, 72%, 67%)
CMYKcmyk(52.9%, 71.5%, 0%, 32.5%)
CIE-LABlab(31.63, 45.07, -60.79)
CIE-LCHlch(31.63, 75.68, 306.55°)
OKLaboklab(43.04% 0.0569 -0.1747)
OKLCHoklch(43.04% 0.184 288)
XYZxyz(11.9359, 6.9239, 39.7293)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131AC #8CAC31
analogous
#314EAC #5131AC #8E31AC
triadic
#5131AC #AC5131 #31AC51
tetradic
#5131AC #AC314E #8CAC31 #31AC8E
square
#5131AC #AC314E #8CAC31 #31AC8E
split-complementary
#5131AC #AC8E31 #4EAC31
monochromatic
#24164D #3B237C #5131AC #6F4ECC #957DDA

Accessibility & contrast

On white

8.81
#5131AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5131AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131AC
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131AC#FFFFFF#000000##FFFFFF
##5131AC1.008.812.398.81
#FFFFFF8.811.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#2E516B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5131ac;
/* rgb */ color: rgb(81, 49, 172);
/* oklch */ color: oklch(43.0% 0.184 288.0);
Tailwind
colors: {
  custom: {
    50: '#8b6cc6',
    500: '#5131ac',
    950: '#000000',
  },
}
SCSS
$custom: #5131ac;
$custom-light: #8b6cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5131ac",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 255.61,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43044,
    "c": 0.18369,
    "h": 288
  },
  "luminance": 0.06925
}

Semantic roles & 50–950 ramp

primary
#5131AC
secondary
#AFC376
accent
#DF49B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5131AC

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

Preview Lab → · Contrast checker → · Palette generator →

#5131AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva