#513BB4#513BB4

#513BB4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.2% C 0.182 H 284.8°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#513BB4
RGBrgb(81, 59, 180)
HSLhsl(251, 51%, 47%)
HSVhsv(251, 67%, 71%)
CMYKcmyk(55%, 67.2%, 0%, 29.4%)
CIE-LABlab(34.34, 41.91, -61.13)
CIE-LCHlch(34.34, 74.12, 304.43°)
OKLaboklab(45.19% 0.0465 -0.1757)
OKLCHoklch(45.19% 0.182 284.8)
XYZxyz(13.1930, 8.1718, 44.0533)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513BB4 #9EB43B
analogous
#3B62B4 #513BB4 #8E3BB4
triadic
#513BB4 #B4513B #3BB451
tetradic
#513BB4 #B43B62 #9EB43B #3BB48E
square
#513BB4 #B43B62 #9EB43B #3BB48E
split-complementary
#513BB4 #B48E3B #62B43B
monochromatic
#281D58 #3C2C86 #513BB4 #7461CB #9D8FDA

Accessibility & contrast

On white

7.97
#513BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#513BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513BB4
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513BB4#FFFFFF#000000##FFFFFF
##513BB41.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#255A72
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513bb4;
/* rgb */ color: rgb(81, 59, 180);
/* oklch */ color: oklch(45.2% 0.182 284.8);
Tailwind
colors: {
  custom: {
    50: '#8b72cb',
    500: '#513bb4',
    950: '#000000',
  },
}
SCSS
$custom: #513bb4;
$custom-light: #8b72cb;
$custom-dark: #000000;
JSON
{
  "hex": "#513bb4",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 180
  },
  "hsl": {
    "h": 250.909,
    "s": 50.628,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45192,
    "c": 0.18174,
    "h": 284.8
  },
  "luminance": 0.08173
}

Semantic roles & 50–950 ramp

primary
#513BB4
secondary
#BAC586
accent
#DA4EC1
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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