#5132BB#5132BB

#5132BB is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.5% C 0.200 H 285.3°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5132BB
RGBrgb(81, 50, 187)
HSLhsl(254, 58%, 46%)
HSVhsv(254, 73%, 73%)
CMYKcmyk(56.7%, 73.3%, 0%, 26.7%)
CIE-LABlab(33.17, 48.93, -67.18)
CIE-LCHlch(33.17, 83.11, 306.07°)
OKLaboklab(44.55% 0.0528 -0.1934)
OKLCHoklch(44.55% 0.2 285.3)
XYZxyz(13.5009, 7.6176, 47.7630)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5132BB #9CBB32
analogous
#3257BB #5132BB #9632BB
triadic
#5132BB #BB5132 #32BB51
tetradic
#5132BB #BB3257 #9CBB32 #32BB96
square
#5132BB #BB3257 #9CBB32 #32BB96
split-complementary
#5132BB #BB9632 #57BB32
monochromatic
#27185A #3C258B #5132BB #7458D2 #9C88DF

Accessibility & contrast

On white

8.32
#5132BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5132BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5132BB
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5132BB#FFFFFF#000000##FFFFFF
##5132BB1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#004AB8
Tritanopia (blue-blind)
#1D5874
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5132bb;
/* rgb */ color: rgb(81, 50, 187);
/* oklch */ color: oklch(44.5% 0.200 285.3);
Tailwind
colors: {
  custom: {
    50: '#8d6dd1',
    500: '#5132bb',
    950: '#000000',
  },
}
SCSS
$custom: #5132bb;
$custom-light: #8d6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5132bb",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 187
  },
  "hsl": {
    "h": 253.577,
    "s": 57.806,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4455,
    "c": 0.20048,
    "h": 285.3
  },
  "luminance": 0.07618
}

Semantic roles & 50–950 ramp

primary
#5132BB
secondary
#B8C980
accent
#E147BE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5132BB

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

Preview Lab → · Contrast checker → · Palette generator →

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