#5131C9#5131C9

#5131C9 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.218 H 283.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5131C9
RGBrgb(81, 49, 201)
HSLhsl(253, 61%, 49%)
HSVhsv(253, 76%, 79%)
CMYKcmyk(59.7%, 75.6%, 0%, 21.2%)
CIE-LABlab(34.32, 53.50, -73.51)
CIE-LCHlch(34.32, 90.92, 306.04°)
OKLaboklab(45.76% 0.0501 -0.2119)
OKLCHoklch(45.76% 0.218 283.3)
XYZxyz(15.0310, 8.1620, 56.0304)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131C9 #A9C931
analogous
#315DC9 #5131C9 #9D31C9
triadic
#5131C9 #C95131 #31C951
tetradic
#5131C9 #C9315D #A9C931 #31C99D
square
#5131C9 #C9315D #A9C931 #31C99D
split-complementary
#5131C9 #C99D31 #5DC931
monochromatic
#291967 #3D2598 #5131C9 #795FD8 #A290E4

Accessibility & contrast

On white

7.98
#5131C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5131C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131C9
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131C9#FFFFFF#000000##FFFFFF
##5131C91.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CD
Deuteranopia (green-blind)
#004CC6
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5131c9;
/* rgb */ color: rgb(81, 49, 201);
/* oklch */ color: oklch(45.8% 0.218 283.3);
Tailwind
colors: {
  custom: {
    50: '#906ddb',
    500: '#5131c9',
    950: '#000000',
  },
}
SCSS
$custom: #5131c9;
$custom-light: #906ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5131c9",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 252.632,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45756,
    "c": 0.21775,
    "h": 283.3
  },
  "luminance": 0.08163
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5131C9

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

Preview Lab → · Contrast checker → · Palette generator →

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