#5131B7#5131B7

#5131B7 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.197 H 286.1°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5131B7
RGBrgb(81, 49, 183)
HSLhsl(254, 58%, 45%)
HSVhsv(254, 73%, 72%)
CMYKcmyk(55.7%, 73.2%, 0%, 28.2%)
CIE-LABlab(32.62, 48.28, -65.72)
CIE-LCHlch(32.62, 81.55, 306.30°)
OKLaboklab(44.05% 0.0545 -0.1891)
OKLCHoklch(44.05% 0.197 286.1)
XYZxyz(13.0363, 7.3641, 45.5251)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131B7 #97B731
analogous
#3154B7 #5131B7 #9431B7
triadic
#5131B7 #B75131 #31B751
tetradic
#5131B7 #B73154 #97B731 #31B794
square
#5131B7 #B73154 #97B731 #31B794
split-complementary
#5131B7 #B79431 #54B731
monochromatic
#261756 #3C2487 #5131B7 #7254D1 #9A84DE

Accessibility & contrast

On white

8.49
#5131B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5131B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131B7
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131B7#FFFFFF#000000##FFFFFF
##5131B71.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#225671
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5131b7;
/* rgb */ color: rgb(81, 49, 183);
/* oklch */ color: oklch(44.0% 0.197 286.1);
Tailwind
colors: {
  custom: {
    50: '#8d6cce',
    500: '#5131b7',
    950: '#000000',
  },
}
SCSS
$custom: #5131b7;
$custom-light: #8d6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#5131b7",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 254.328,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44048,
    "c": 0.19681,
    "h": 286.1
  },
  "luminance": 0.07365
}

Semantic roles & 50–950 ramp

primary
#5131B7
secondary
#B6C87C
accent
#E147BC
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5131B7

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

Preview Lab → · Contrast checker → · Palette generator →

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