#5132BF#5132BF

#5132BF is a dark, highly saturated violet. Relative luminance 0.078; OKLCH L 44.9% C 0.205 H 284.6°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#5132BF
RGBrgb(81, 50, 191)
HSLhsl(253, 59%, 47%)
HSVhsv(253, 74%, 75%)
CMYKcmyk(57.6%, 73.8%, 0%, 25.1%)
CIE-LABlab(33.54, 50.10, -68.93)
CIE-LCHlch(33.54, 85.21, 306.01°)
OKLaboklab(44.93% 0.0518 -0.1985)
OKLCHoklch(44.93% 0.205 284.6)
XYZxyz(13.9350, 7.7913, 50.0497)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5132BF #A0BF32
analogous
#325ABF #5132BF #9732BF
triadic
#5132BF #BF5132 #32BF51
tetradic
#5132BF #BF325A #A0BF32 #32BF97
square
#5132BF #BF325A #A0BF32 #32BF97
split-complementary
#5132BF #BF9732 #5ABF32
monochromatic
#28195E #3C258E #5132BF #755AD4 #9E8BE1

Accessibility & contrast

On white

8.21
#5132BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5132BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5132BF
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5132BF#FFFFFF#000000##FFFFFF
##5132BF1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#004ABC
Tritanopia (blue-blind)
#155976
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5132bf;
/* rgb */ color: rgb(81, 50, 191);
/* oklch */ color: oklch(44.9% 0.205 284.6);
Tailwind
colors: {
  custom: {
    50: '#8e6dd3',
    500: '#5132bf',
    950: '#000000',
  },
}
SCSS
$custom: #5132bf;
$custom-light: #8e6dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5132bf",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 191
  },
  "hsl": {
    "h": 253.191,
    "s": 58.506,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44925,
    "c": 0.20518,
    "h": 284.6
  },
  "luminance": 0.07792
}

Semantic roles & 50–950 ramp

primary
#5132BF
secondary
#BBCB82
accent
#E246BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5132BF

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

Preview Lab → · Contrast checker → · Palette generator →

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