#513DB2#513DB2

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

Color values

HEX#513DB2
RGBrgb(81, 61, 178)
HSLhsl(250, 49%, 47%)
HSVhsv(250, 66%, 70%)
CMYKcmyk(54.5%, 65.7%, 0%, 30.2%)
CIE-LABlab(34.60, 40.14, -59.52)
CIE-LCHlch(34.60, 71.79, 303.99°)
OKLaboklab(45.33% 0.0448 -0.171)
OKLCHoklch(45.33% 0.177 284.7)
XYZxyz(13.0955, 8.3004, 43.0229)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513DB2 #9EB23D
analogous
#3D64B2 #513DB2 #8B3DB2
triadic
#513DB2 #B2513D #3DB251
tetradic
#513DB2 #B23D64 #9EB23D #3DB28B
square
#513DB2 #B23D64 #9EB23D #3DB28B
split-complementary
#513DB2 #B28B3D #64B23D
monochromatic
#281E57 #3C2D84 #513DB2 #7463C9 #9D90D9

Accessibility & contrast

On white

7.89
#513DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513DB2
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513DB2#FFFFFF#000000##FFFFFF
##513DB21.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#275A72
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513db2;
/* rgb */ color: rgb(81, 61, 178);
/* oklch */ color: oklch(45.3% 0.177 284.7);
Tailwind
colors: {
  custom: {
    50: '#8b74ca',
    500: '#513db2',
    950: '#000000',
  },
}
SCSS
$custom: #513db2;
$custom-light: #8b74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#513db2",
  "rgb": {
    "r": 81,
    "g": 61,
    "b": 178
  },
  "hsl": {
    "h": 250.256,
    "s": 48.954,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45331,
    "c": 0.17674,
    "h": 284.7
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#513DB2
secondary
#BAC487
accent
#D94FC1
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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