#513BB7#513BB7

#513BB7 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.185 H 284.4°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#513BB7
RGBrgb(81, 59, 183)
HSLhsl(251, 51%, 47%)
HSVhsv(251, 68%, 72%)
CMYKcmyk(55.7%, 67.8%, 0%, 28.2%)
CIE-LABlab(34.59, 42.83, -62.50)
CIE-LCHlch(34.59, 75.76, 304.42°)
OKLaboklab(45.45% 0.046 -0.1797)
OKLCHoklch(45.45% 0.186 284.4)
XYZxyz(13.5019, 8.2954, 45.6803)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513BB7 #A1B73B
analogous
#3B63B7 #513BB7 #8F3BB7
triadic
#513BB7 #B7513B #3BB751
tetradic
#513BB7 #B73B63 #A1B73B #3BB78F
square
#513BB7 #B73B63 #A1B73B #3BB78F
split-complementary
#513BB7 #B78F3B #63B73B
monochromatic
#281D5A #3D2C89 #513BB7 #7563CD #9E91DC

Accessibility & contrast

On white

7.90
#513BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#513BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513BB7
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513BB7#FFFFFF#000000##FFFFFF
##513BB71.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#215B74
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513bb7;
/* rgb */ color: rgb(81, 59, 183);
/* oklch */ color: oklch(45.5% 0.185 284.4);
Tailwind
colors: {
  custom: {
    50: '#8c73ce',
    500: '#513bb7',
    950: '#000000',
  },
}
SCSS
$custom: #513bb7;
$custom-light: #8c73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#513bb7",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 183
  },
  "hsl": {
    "h": 250.645,
    "s": 51.24,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45452,
    "c": 0.1855,
    "h": 284.4
  },
  "luminance": 0.08296
}

Semantic roles & 50–950 ramp

primary
#513BB7
secondary
#BBC687
accent
#DB4DC2
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #513BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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