#513DB3#513DB3

#513DB3 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.4% C 0.178 H 284.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#513DB3
RGBrgb(81, 61, 179)
HSLhsl(250, 49%, 47%)
HSVhsv(250, 66%, 70%)
CMYKcmyk(54.7%, 65.9%, 0%, 29.8%)
CIE-LABlab(34.68, 40.45, -59.98)
CIE-LCHlch(34.68, 72.34, 303.99°)
OKLaboklab(45.42% 0.0447 -0.1723)
OKLCHoklch(45.42% 0.178 284.5)
XYZxyz(13.1963, 8.3407, 43.5537)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513DB3 #9FB33D
analogous
#3D64B3 #513DB3 #8C3DB3
triadic
#513DB3 #B3513D #3DB351
tetradic
#513DB3 #B33D64 #9FB33D #3DB38C
square
#513DB3 #B33D64 #9FB33D #3DB38C
split-complementary
#513DB3 #B38C3D #64B33D
monochromatic
#281E58 #3C2D85 #513DB3 #7563CA #9D91D9

Accessibility & contrast

On white

7.87
#513DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#513DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513DB3
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513DB3#FFFFFF#000000##FFFFFF
##513DB31.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#265B72
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #513db3;
/* rgb */ color: rgb(81, 61, 179);
/* oklch */ color: oklch(45.4% 0.178 284.5);
Tailwind
colors: {
  custom: {
    50: '#8b74cb',
    500: '#513db3',
    950: '#000000',
  },
}
SCSS
$custom: #513db3;
$custom-light: #8b74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#513db3",
  "rgb": {
    "r": 81,
    "g": 61,
    "b": 179
  },
  "hsl": {
    "h": 250.169,
    "s": 49.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45415,
    "c": 0.17802,
    "h": 284.5
  },
  "luminance": 0.08341
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #513DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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