#513CBA#513CBA

#513CBA is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.188 H 283.7°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#513CBA
RGBrgb(81, 60, 186)
HSLhsl(250, 51%, 48%)
HSVhsv(250, 68%, 73%)
CMYKcmyk(56.5%, 67.7%, 0%, 27.1%)
CIE-LABlab(35.05, 43.17, -63.51)
CIE-LCHlch(35.05, 76.80, 304.21°)
OKLaboklab(45.86% 0.0447 -0.1827)
OKLCHoklch(45.86% 0.188 283.7)
XYZxyz(13.8694, 8.5254, 47.3596)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513CBA #A5BA3C
analogous
#3C66BA #513CBA #903CBA
triadic
#513CBA #BA513C #3CBA51
tetradic
#513CBA #BA3C66 #A5BA3C #3CBA90
square
#513CBA #BA3C66 #A5BA3C #3CBA90
split-complementary
#513CBA #BA903C #66BA3C
monochromatic
#291E5D #3D2D8C #513CBA #7766CE #A094DC

Accessibility & contrast

On white

7.76
#513CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#513CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513CBA
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513CBA#FFFFFF#000000##FFFFFF
##513CBA1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#1D5C76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #513cba;
/* rgb */ color: rgb(81, 60, 186);
/* oklch */ color: oklch(45.9% 0.188 283.7);
Tailwind
colors: {
  custom: {
    50: '#8c73d0',
    500: '#513cba',
    950: '#000000',
  },
}
SCSS
$custom: #513cba;
$custom-light: #8c73d0;
$custom-dark: #000000;
JSON
{
  "hex": "#513cba",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 186
  },
  "hsl": {
    "h": 250,
    "s": 51.22,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45864,
    "c": 0.18807,
    "h": 283.7
  },
  "luminance": 0.08526
}

Semantic roles & 50–950 ramp

primary
#513CBA
secondary
#BDC88A
accent
#DB4DC3
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #513CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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