#513CB4#513CB4

#513CB4 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.3% C 0.181 H 284.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#513CB4
RGBrgb(81, 60, 180)
HSLhsl(251, 50%, 47%)
HSVhsv(251, 67%, 71%)
CMYKcmyk(55%, 66.7%, 0%, 29.4%)
CIE-LABlab(34.55, 41.33, -60.79)
CIE-LCHlch(34.55, 73.51, 304.21°)
OKLaboklab(45.35% 0.0455 -0.1747)
OKLCHoklch(45.35% 0.181 284.6)
XYZxyz(13.2449, 8.2756, 44.0706)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513CB4 #9FB43C
analogous
#3C63B4 #513CB4 #8D3CB4
triadic
#513CB4 #B4513C #3CB451
tetradic
#513CB4 #B43C63 #9FB43C #3CB48D
square
#513CB4 #B43C63 #9FB43C #3CB48D
split-complementary
#513CB4 #B48D3C #63B43C
monochromatic
#281D58 #3C2D86 #513CB4 #7562CB #9D90DA

Accessibility & contrast

On white

7.91
#513CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513CB4
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513CB4#FFFFFF#000000##FFFFFF
##513CB41.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #513cb4;
/* rgb */ color: rgb(81, 60, 180);
/* oklch */ color: oklch(45.3% 0.181 284.6);
Tailwind
colors: {
  custom: {
    50: '#8b73cb',
    500: '#513cb4',
    950: '#000000',
  },
}
SCSS
$custom: #513cb4;
$custom-light: #8b73cb;
$custom-dark: #000000;
JSON
{
  "hex": "#513cb4",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 180
  },
  "hsl": {
    "h": 250.5,
    "s": 50,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45345,
    "c": 0.18052,
    "h": 284.6
  },
  "luminance": 0.08276
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #513CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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