#5131BD#5131BD

#5131BD is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.6% C 0.204 H 285.1°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5131BD
RGBrgb(81, 49, 189)
HSLhsl(254, 59%, 47%)
HSVhsv(254, 74%, 74%)
CMYKcmyk(57.1%, 74.1%, 0%, 25.9%)
CIE-LABlab(33.18, 50.02, -68.36)
CIE-LCHlch(33.18, 84.70, 306.20°)
OKLaboklab(44.61% 0.0531 -0.1968)
OKLCHoklch(44.61% 0.204 285.1)
XYZxyz(13.6742, 7.6193, 48.8844)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5131BD #9DBD31
analogous
#3157BD #5131BD #9731BD
triadic
#5131BD #BD5131 #31BD51
tetradic
#5131BD #BD3157 #9DBD31 #31BD97
square
#5131BD #BD3157 #9DBD31 #31BD97
split-complementary
#5131BD #BD9731 #57BD31
monochromatic
#27185C #3C248C #5131BD #7458D4 #9C88E0

Accessibility & contrast

On white

8.32
#5131BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5131BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5131BD
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5131BD#FFFFFF#000000##FFFFFF
##5131BD1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#004ABA
Tritanopia (blue-blind)
#195875
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5131bd;
/* rgb */ color: rgb(81, 49, 189);
/* oklch */ color: oklch(44.6% 0.204 285.1);
Tailwind
colors: {
  custom: {
    50: '#8e6dd2',
    500: '#5131bd',
    950: '#000000',
  },
}
SCSS
$custom: #5131bd;
$custom-light: #8e6dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5131bd",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 253.714,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44609,
    "c": 0.20387,
    "h": 285.1
  },
  "luminance": 0.0762
}

Semantic roles & 50–950 ramp

primary
#5131BD
secondary
#B9CA80
accent
#E246BE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5131BD

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

Preview Lab → · Contrast checker → · Palette generator →

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