#5131CA#5131CA

#5131CA is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.9% C 0.219 H 283.2°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5131CA
RGBrgb(81, 49, 202)
HSLhsl(253, 61%, 49%)
HSVhsv(253, 76%, 79%)
CMYKcmyk(59.9%, 75.7%, 0%, 20.8%)
CIE-LABlab(34.41, 53.79, -73.94)
CIE-LCHlch(34.41, 91.43, 306.03°)
OKLaboklab(45.85% 0.0498 -0.2131)
OKLCHoklch(45.85% 0.219 283.2)
XYZxyz(15.1490, 8.2092, 56.6519)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131CA #AACA31
analogous
#315ECA #5131CA #9E31CA
triadic
#5131CA #CA5131 #31CA51
tetradic
#5131CA #CA315E #AACA31 #31CA9E
square
#5131CA #CA315E #AACA31 #31CA9E
split-complementary
#5131CA #CA9E31 #5ECA31
monochromatic
#2A1967 #3D2599 #5131CA #7960D8 #A291E4

Accessibility & contrast

On white

7.95
#5131CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5131CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131CA
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131CA#FFFFFF#000000##FFFFFF
##5131CA1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CE
Deuteranopia (green-blind)
#004CC7
Tritanopia (blue-blind)
#005D7C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5131ca;
/* rgb */ color: rgb(81, 49, 202);
/* oklch */ color: oklch(45.9% 0.219 283.2);
Tailwind
colors: {
  custom: {
    50: '#906ddb',
    500: '#5131ca',
    950: '#000000',
  },
}
SCSS
$custom: #5131ca;
$custom-light: #906ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5131ca",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 252.549,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45853,
    "c": 0.21889,
    "h": 283.2
  },
  "luminance": 0.0821
}

Semantic roles & 50–950 ramp

primary
#5131CA
secondary
#C0CF88
accent
#E444C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5131CA

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

Preview Lab → · Contrast checker → · Palette generator →

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