#5130AF#5130AF

#5130AF is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.188 H 287.6°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5130AF
RGBrgb(81, 48, 175)
HSLhsl(256, 57%, 44%)
HSVhsv(256, 73%, 69%)
CMYKcmyk(53.7%, 72.6%, 0%, 31.4%)
CIE-LABlab(31.71, 46.47, -62.46)
CIE-LCHlch(31.71, 77.85, 306.65°)
OKLaboklab(43.18% 0.0571 -0.1795)
OKLCHoklch(43.18% 0.188 287.6)
XYZxyz(12.1859, 6.9578, 41.2500)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5130AF #8EAF30
analogous
#304EAF #5130AF #9030AF
triadic
#5130AF #AF5130 #30AF51
tetradic
#5130AF #AF304E #8EAF30 #30AF90
square
#5130AF #AF304E #8EAF30 #30AF90
split-complementary
#5130AF #AF9030 #4EAF30
monochromatic
#25164F #3B237F #5130AF #6F4ECE #967EDC

Accessibility & contrast

On white

8.78
#5130AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5130AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5130AF
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5130AF#FFFFFF#000000##FFFFFF
##5130AF1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#2B526C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5130af;
/* rgb */ color: rgb(81, 48, 175);
/* oklch */ color: oklch(43.2% 0.188 287.6);
Tailwind
colors: {
  custom: {
    50: '#8c6bc8',
    500: '#5130af',
    950: '#000000',
  },
}
SCSS
$custom: #5130af;
$custom-light: #8c6bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5130af",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 175
  },
  "hsl": {
    "h": 255.591,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43181,
    "c": 0.1884,
    "h": 287.6
  },
  "luminance": 0.06958
}

Semantic roles & 50–950 ramp

primary
#5130AF
secondary
#B0C476
accent
#E048B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5130AF

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

Preview Lab → · Contrast checker → · Palette generator →

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