#5130AC#5130AC

#5130AC is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.185 H 288.2°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5130AC
RGBrgb(81, 48, 172)
HSLhsl(256, 56%, 43%)
HSVhsv(256, 72%, 67%)
CMYKcmyk(52.9%, 72.1%, 0%, 32.5%)
CIE-LABlab(31.44, 45.60, -61.10)
CIE-LCHlch(31.44, 76.24, 306.73°)
OKLaboklab(42.91% 0.0577 -0.1756)
OKLCHoklch(42.91% 0.185 288.2)
XYZxyz(11.8945, 6.8412, 39.7155)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5130AC #8BAC30
analogous
#304DAC #5130AC #8F30AC
triadic
#5130AC #AC5130 #30AC51
tetradic
#5130AC #AC304D #8BAC30 #30AC8F
square
#5130AC #AC304D #8BAC30 #30AC8F
split-complementary
#5130AC #AC8F30 #4DAC30
monochromatic
#24154C #3A237C #5130AC #6E4CCD #957CDA

Accessibility & contrast

On white

8.87
#5130AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5130AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5130AC
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5130AC#FFFFFF#000000##FFFFFF
##5130AC1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.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: #5130ac;
/* rgb */ color: rgb(81, 48, 172);
/* oklch */ color: oklch(42.9% 0.185 288.2);
Tailwind
colors: {
  custom: {
    50: '#8b6bc6',
    500: '#5130ac',
    950: '#000000',
  },
}
SCSS
$custom: #5130ac;
$custom-light: #8b6bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5130ac",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 255.968,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42908,
    "c": 0.18482,
    "h": 288.2
  },
  "luminance": 0.06842
}

Semantic roles & 50–950 ramp

primary
#5130AC
secondary
#AEC375
accent
#E048B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5130AC

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

Preview Lab → · Contrast checker → · Palette generator →

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