#5132CF#5132CF

#5132CF is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.5% C 0.224 H 282.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5132CF
RGBrgb(81, 50, 207)
HSLhsl(252, 62%, 50%)
HSVhsv(252, 76%, 81%)
CMYKcmyk(60.9%, 75.8%, 0%, 18.8%)
CIE-LABlab(35.07, 54.74, -75.76)
CIE-LCHlch(35.07, 93.47, 305.85°)
OKLaboklab(46.46% 0.0479 -0.2185)
OKLCHoklch(46.46% 0.224 282.4)
XYZxyz(15.7929, 8.5344, 59.8345)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5132CF #B0CF32
analogous
#3262CF #5132CF #9F32CF
triadic
#5132CF #CF5132 #32CF51
tetradic
#5132CF #CF3262 #B0CF32 #32CF9F
square
#5132CF #CF3262 #B0CF32 #32CF9F
split-complementary
#5132CF #CF9F32 #62CF32
monochromatic
#2A1A6D #3D259F #5132CF #7B64DB #A595E6

Accessibility & contrast

On white

7.76
#5132CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5132CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5132CF
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5132CF#FFFFFF#000000##FFFFFF
##5132CF1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D3
Deuteranopia (green-blind)
#004DCC
Tritanopia (blue-blind)
#005F7F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5132cf;
/* rgb */ color: rgb(81, 50, 207);
/* oklch */ color: oklch(46.5% 0.224 282.4);
Tailwind
colors: {
  custom: {
    50: '#916edf',
    500: '#5132cf',
    950: '#000000',
  },
}
SCSS
$custom: #5132cf;
$custom-light: #916edf;
$custom-dark: #000000;
JSON
{
  "hex": "#5132cf",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 207
  },
  "hsl": {
    "h": 251.847,
    "s": 62.055,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4646,
    "c": 0.22367,
    "h": 282.4
  },
  "luminance": 0.08536
}

Semantic roles & 50–950 ramp

primary
#5132CF
secondary
#C4D18B
accent
#E543C5
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5132CF

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

Preview Lab → · Contrast checker → · Palette generator →

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