#5132CD#5132CD

#5132CD is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.3% C 0.221 H 282.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5132CD
RGBrgb(81, 50, 205)
HSLhsl(252, 61%, 50%)
HSVhsv(252, 76%, 80%)
CMYKcmyk(60.5%, 75.6%, 0%, 19.6%)
CIE-LABlab(34.88, 54.17, -74.92)
CIE-LCHlch(34.88, 92.45, 305.87°)
OKLaboklab(46.27% 0.0484 -0.216)
OKLCHoklch(46.27% 0.221 282.6)
XYZxyz(15.5500, 8.4372, 58.5549)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5132CD #AECD32
analogous
#3261CD #5132CD #9E32CD
triadic
#5132CD #CD5132 #32CD51
tetradic
#5132CD #CD3261 #AECD32 #32CD9E
square
#5132CD #CD3261 #AECD32 #32CD9E
split-complementary
#5132CD #CD9E32 #61CD32
monochromatic
#2A1A6B #3E269C #5132CD #7B63D9 #A594E5

Accessibility & contrast

On white

7.81
#5132CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5132CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5132CD
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5132CD#FFFFFF#000000##FFFFFF
##5132CD1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D1
Deuteranopia (green-blind)
#004DCA
Tritanopia (blue-blind)
#005F7E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5132cd;
/* rgb */ color: rgb(81, 50, 205);
/* oklch */ color: oklch(46.3% 0.221 282.6);
Tailwind
colors: {
  custom: {
    50: '#906ede',
    500: '#5132cd',
    950: '#000000',
  },
}
SCSS
$custom: #5132cd;
$custom-light: #906ede;
$custom-dark: #000000;
JSON
{
  "hex": "#5132cd",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 205
  },
  "hsl": {
    "h": 252,
    "s": 60.784,
    "l": 50
  },
  "oklch": {
    "l": 0.46265,
    "c": 0.22138,
    "h": 282.6
  },
  "luminance": 0.08438
}

Semantic roles & 50–950 ramp

primary
#5132CD
secondary
#C2D08B
accent
#E444C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5132CD

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

Preview Lab → · Contrast checker → · Palette generator →

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