#5131C7#5131C7

#5131C7 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.215 H 283.6°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5131C7
RGBrgb(81, 49, 199)
HSLhsl(253, 60%, 49%)
HSVhsv(253, 75%, 78%)
CMYKcmyk(59.3%, 75.4%, 0%, 22%)
CIE-LABlab(34.13, 52.92, -72.66)
CIE-LCHlch(34.13, 89.89, 306.07°)
OKLaboklab(45.56% 0.0506 -0.2094)
OKLCHoklch(45.56% 0.215 283.6)
XYZxyz(14.7973, 8.0685, 54.7994)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131C7 #A7C731
analogous
#315CC7 #5131C7 #9C31C7
triadic
#5131C7 #C75131 #31C751
tetradic
#5131C7 #C7315C #A7C731 #31C79C
square
#5131C7 #C7315C #A7C731 #31C79C
split-complementary
#5131C7 #C79C31 #5CC731
monochromatic
#291965 #3D2596 #5131C7 #785ED7 #A18FE3

Accessibility & contrast

On white

8.03
#5131C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5131C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131C7
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131C7#FFFFFF#000000##FFFFFF
##5131C71.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CB
Deuteranopia (green-blind)
#004BC4
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5131c7;
/* rgb */ color: rgb(81, 49, 199);
/* oklch */ color: oklch(45.6% 0.215 283.6);
Tailwind
colors: {
  custom: {
    50: '#8f6dd9',
    500: '#5131c7',
    950: '#000000',
  },
}
SCSS
$custom: #5131c7;
$custom-light: #8f6dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5131c7",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 252.8,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45563,
    "c": 0.21545,
    "h": 283.6
  },
  "luminance": 0.08069
}

Semantic roles & 50–950 ramp

primary
#5131C7
secondary
#BFCE86
accent
#E444C2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5131C7

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

Preview Lab → · Contrast checker → · Palette generator →

#5131C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva