#513EA3#513EA3

#513EA3 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.3% C 0.156 H 286.8°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#513EA3
RGBrgb(81, 62, 163)
HSLhsl(251, 45%, 44%)
HSVhsv(251, 62%, 64%)
CMYKcmyk(50.3%, 62%, 0%, 36.1%)
CIE-LABlab(33.64, 34.92, -52.11)
CIE-LCHlch(33.64, 62.73, 303.83°)
OKLaboklab(44.27% 0.0452 -0.1492)
OKLCHoklch(44.27% 0.156 286.8)
XYZxyz(11.7249, 7.8384, 35.5384)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EA3 #90A33E
analogous
#3E5EA3 #513EA3 #843EA3
triadic
#513EA3 #A3513E #3EA351
tetradic
#513EA3 #A33E5E #90A33E #3EA384
square
#513EA3 #A33E5E #90A33E #3EA384
split-complementary
#513EA3 #A3843E #5EA33E
monochromatic
#251C4A #3B2D77 #513EA3 #705DC1 #9789D2

Accessibility & contrast

On white

8.18
#513EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#513EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513EA3
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EA3#FFFFFF#000000##FFFFFF
##513EA31.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#004CA1
Tritanopia (blue-blind)
#34566A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #513ea3;
/* rgb */ color: rgb(81, 62, 163);
/* oklch */ color: oklch(44.3% 0.156 286.8);
Tailwind
colors: {
  custom: {
    50: '#8974bf',
    500: '#513ea3',
    950: '#000000',
  },
}
SCSS
$custom: #513ea3;
$custom-light: #8974bf;
$custom-dark: #000000;
JSON
{
  "hex": "#513ea3",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 163
  },
  "hsl": {
    "h": 251.287,
    "s": 44.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44265,
    "c": 0.15586,
    "h": 286.8
  },
  "luminance": 0.07839
}

Semantic roles & 50–950 ramp

primary
#513EA3
secondary
#B1BD80
accent
#D553BC
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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