#5132AE#5132AE

#5132AE is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.185 H 287.5°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5132AE
RGBrgb(81, 50, 174)
HSLhsl(255, 55%, 44%)
HSVhsv(255, 71%, 68%)
CMYKcmyk(53.4%, 71.3%, 0%, 31.8%)
CIE-LABlab(32.00, 45.12, -61.38)
CIE-LCHlch(32.00, 76.18, 306.32°)
OKLaboklab(43.36% 0.0556 -0.1764)
OKLCHoklch(43.36% 0.185 287.5)
XYZxyz(12.1717, 7.0859, 40.7626)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5132AE #8FAE32
analogous
#3251AE #5132AE #8F32AE
triadic
#5132AE #AE5132 #32AE51
tetradic
#5132AE #AE3251 #8FAE32 #32AE8F
square
#5132AE #AE3251 #8FAE32 #32AE8F
split-complementary
#5132AE #AE8F32 #51AE32
monochromatic
#25174F #3B247E #5132AE #6F50CD #9780DA

Accessibility & contrast

On white

8.69
#5132AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5132AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5132AE
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5132AE#FFFFFF#000000##FFFFFF
##5132AE1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#2C536C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5132ae;
/* rgb */ color: rgb(81, 50, 174);
/* oklch */ color: oklch(43.4% 0.185 287.5);
Tailwind
colors: {
  custom: {
    50: '#8b6dc7',
    500: '#5132ae',
    950: '#000000',
  },
}
SCSS
$custom: #5132ae;
$custom-light: #8b6dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5132ae",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 174
  },
  "hsl": {
    "h": 255,
    "s": 55.357,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4336,
    "c": 0.18495,
    "h": 287.5
  },
  "luminance": 0.07087
}

Semantic roles & 50–950 ramp

primary
#5132AE
secondary
#B1C478
accent
#DF49B9
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5132AE

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

Preview Lab → · Contrast checker → · Palette generator →

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