#5131C6#5131C6

#5131C6 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.5% C 0.214 H 283.7°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5131C6
RGBrgb(81, 49, 198)
HSLhsl(253, 60%, 48%)
HSVhsv(253, 75%, 78%)
CMYKcmyk(59.1%, 75.3%, 0%, 22.4%)
CIE-LABlab(34.03, 52.63, -72.24)
CIE-LCHlch(34.03, 89.38, 306.08°)
OKLaboklab(45.47% 0.0508 -0.2082)
OKLCHoklch(45.47% 0.214 283.7)
XYZxyz(14.6816, 8.0222, 54.1899)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131C6 #A6C631
analogous
#315BC6 #5131C6 #9B31C6
triadic
#5131C6 #C65131 #31C651
tetradic
#5131C6 #C6315B #A6C631 #31C69B
square
#5131C6 #C6315B #A6C631 #31C69B
split-complementary
#5131C6 #C69B31 #5BC631
monochromatic
#291964 #3D2595 #5131C6 #775DD7 #A18EE3

Accessibility & contrast

On white

8.06
#5131C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5131C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131C6
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131C6#FFFFFF#000000##FFFFFF
##5131C61.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CA
Deuteranopia (green-blind)
#004BC3
Tritanopia (blue-blind)
#005B7A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5131c6;
/* rgb */ color: rgb(81, 49, 198);
/* oklch */ color: oklch(45.5% 0.214 283.7);
Tailwind
colors: {
  custom: {
    50: '#8f6dd9',
    500: '#5131c6',
    950: '#000000',
  },
}
SCSS
$custom: #5131c6;
$custom-light: #8f6dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5131c6",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 252.886,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45466,
    "c": 0.21431,
    "h": 283.7
  },
  "luminance": 0.08023
}

Semantic roles & 50–950 ramp

primary
#5131C6
secondary
#BECE85
accent
#E344C1
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5131C6

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

Preview Lab → · Contrast checker → · Palette generator →

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