#5131C4#5131C4

#5131C4 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.212 H 284.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5131C4
RGBrgb(81, 49, 196)
HSLhsl(253, 60%, 48%)
HSVhsv(253, 75%, 77%)
CMYKcmyk(58.7%, 75%, 0%, 23.1%)
CIE-LABlab(33.84, 52.05, -71.38)
CIE-LCHlch(33.84, 88.35, 306.10°)
OKLaboklab(45.27% 0.0513 -0.2057)
OKLCHoklch(45.27% 0.212 284)
XYZxyz(14.4524, 7.9306, 52.9830)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131C4 #A4C431
analogous
#315BC4 #5131C4 #9A31C4
triadic
#5131C4 #C45131 #31C451
tetradic
#5131C4 #C4315B #A4C431 #31C49A
square
#5131C4 #C4315B #A4C431 #31C49A
split-complementary
#5131C4 #C49A31 #5BC431
monochromatic
#291962 #3D2593 #5131C4 #775CD6 #A08DE2

Accessibility & contrast

On white

8.12
#5131C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5131C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131C4
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131C4#FFFFFF#000000##FFFFFF
##5131C41.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C8
Deuteranopia (green-blind)
#004BC1
Tritanopia (blue-blind)
#075B78
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5131c4;
/* rgb */ color: rgb(81, 49, 196);
/* oklch */ color: oklch(45.3% 0.212 284.0);
Tailwind
colors: {
  custom: {
    50: '#8f6dd7',
    500: '#5131c4',
    950: '#000000',
  },
}
SCSS
$custom: #5131c4;
$custom-light: #8f6dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5131c4",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 253.061,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45274,
    "c": 0.212,
    "h": 284
  },
  "luminance": 0.07931
}

Semantic roles & 50–950 ramp

primary
#5131C4
secondary
#BDCD84
accent
#E345C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5131C4

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

Preview Lab → · Contrast checker → · Palette generator →

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