#5131E6#5131E6

#5131E6 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.250 H 279.7°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5131E6
RGBrgb(81, 49, 230)
HSLhsl(251, 78%, 55%)
HSVhsv(251, 79%, 90%)
CMYKcmyk(64.8%, 78.7%, 0%, 9.8%)
CIE-LABlab(37.22, 61.77, -85.44)
CIE-LCHlch(37.22, 105.43, 305.87°)
OKLaboklab(48.65% 0.0422 -0.2467)
OKLCHoklch(48.65% 0.25 279.7)
XYZxyz(18.7700, 9.6576, 75.7225)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131E6 #C6E631
analogous
#316BE6 #5131E6 #AC31E6
triadic
#5131E6 #E65131 #31E651
tetradic
#5131E6 #E6316B #C6E631 #31E6AC
square
#5131E6 #E6316B #C6E631 #31E6AC
split-complementary
#5131E6 #E6AC31 #6BE631
monochromatic
#27118C #3618C2 #5131E6 #7F68ED #AD9EF3

Accessibility & contrast

On white

7.16
#5131E6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5131E6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131E6
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131E6#FFFFFF#000000##FFFFFF
##5131E61.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EEB
Deuteranopia (green-blind)
#0050E3
Tritanopia (blue-blind)
#00688C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5131e6;
/* rgb */ color: rgb(81, 49, 230);
/* oklch */ color: oklch(48.6% 0.250 279.7);
Tailwind
colors: {
  custom: {
    50: '#956fef',
    500: '#5131e6',
    950: '#000000',
  },
}
SCSS
$custom: #5131e6;
$custom-light: #956fef;
$custom-dark: #000000;
JSON
{
  "hex": "#5131e6",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 230
  },
  "hsl": {
    "h": 250.608,
    "s": 78.355,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48646,
    "c": 0.25026,
    "h": 279.7
  },
  "luminance": 0.09659
}

Semantic roles & 50–950 ramp

primary
#5131E6
secondary
#D2E093
accent
#F533D3
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0817
muted
#7F7B85

Preview Lab

Preview with #5131E6

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

Preview Lab → · Contrast checker → · Palette generator →

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