#513BB1#513BB1

#513BB1 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.9% C 0.178 H 285.3°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#513BB1
RGBrgb(81, 59, 177)
HSLhsl(251, 50%, 46%)
HSVhsv(251, 67%, 69%)
CMYKcmyk(54.2%, 66.7%, 0%, 30.6%)
CIE-LABlab(34.09, 40.99, -59.76)
CIE-LCHlch(34.09, 72.47, 304.45°)
OKLaboklab(44.94% 0.0469 -0.1717)
OKLCHoklch(44.94% 0.178 285.3)
XYZxyz(12.8907, 8.0509, 42.4612)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513BB1 #9BB13B
analogous
#3B60B1 #513BB1 #8C3BB1
triadic
#513BB1 #B1513B #3BB151
tetradic
#513BB1 #B13B60 #9BB13B #3BB18C
square
#513BB1 #B13B60 #9BB13B #3BB18C
split-complementary
#513BB1 #B18C3B #60B13B
monochromatic
#271C55 #3C2C83 #513BB1 #735FCA #9B8DD9

Accessibility & contrast

On white

8.04
#513BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#513BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513BB1
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513BB1#FFFFFF#000000##FFFFFF
##513BB11.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#285971
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #513bb1;
/* rgb */ color: rgb(81, 59, 177);
/* oklch */ color: oklch(44.9% 0.178 285.3);
Tailwind
colors: {
  custom: {
    50: '#8b72c9',
    500: '#513bb1',
    950: '#000000',
  },
}
SCSS
$custom: #513bb1;
$custom-light: #8b72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#513bb1",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 177
  },
  "hsl": {
    "h": 251.186,
    "s": 50,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44935,
    "c": 0.17795,
    "h": 285.3
  },
  "luminance": 0.08052
}

Semantic roles & 50–950 ramp

primary
#513BB1
secondary
#B8C484
accent
#DA4EC0
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513BB1

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

Preview Lab → · Contrast checker → · Palette generator →

#513BB1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva