#5132BC#5132BC

#5132BC is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.6% C 0.202 H 285.1°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#5132BC
RGBrgb(81, 50, 188)
HSLhsl(253, 58%, 47%)
HSVhsv(253, 73%, 74%)
CMYKcmyk(56.9%, 73.4%, 0%, 26.3%)
CIE-LABlab(33.27, 49.22, -67.62)
CIE-LCHlch(33.27, 83.64, 306.05°)
OKLaboklab(44.64% 0.0525 -0.1947)
OKLCHoklch(44.64% 0.202 285.1)
XYZxyz(13.6083, 7.6606, 48.3288)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5132BC #9DBC32
analogous
#3258BC #5132BC #9632BC
triadic
#5132BC #BC5132 #32BC51
tetradic
#5132BC #BC3258 #9DBC32 #32BC96
square
#5132BC #BC3258 #9DBC32 #32BC96
split-complementary
#5132BC #BC9632 #58BC32
monochromatic
#27185B #3C258C #5132BC #7458D3 #9C89E0

Accessibility & contrast

On white

8.29
#5132BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5132BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5132BC
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5132BC#FFFFFF#000000##FFFFFF
##5132BC1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C0
Deuteranopia (green-blind)
#004AB9
Tritanopia (blue-blind)
#1B5874
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5132bc;
/* rgb */ color: rgb(81, 50, 188);
/* oklch */ color: oklch(44.6% 0.202 285.1);
Tailwind
colors: {
  custom: {
    50: '#8d6dd1',
    500: '#5132bc',
    950: '#000000',
  },
}
SCSS
$custom: #5132bc;
$custom-light: #8d6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5132bc",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 188
  },
  "hsl": {
    "h": 253.478,
    "s": 57.983,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44643,
    "c": 0.20165,
    "h": 285.1
  },
  "luminance": 0.07661
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5132BC

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

Preview Lab → · Contrast checker → · Palette generator →

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