#513DB1#513DB1

#513DB1 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.2% C 0.175 H 284.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#513DB1
RGBrgb(81, 61, 177)
HSLhsl(250, 49%, 47%)
HSVhsv(250, 66%, 69%)
CMYKcmyk(54.2%, 65.5%, 0%, 30.6%)
CIE-LABlab(34.52, 39.83, -59.06)
CIE-LCHlch(34.52, 71.23, 304.00°)
OKLaboklab(45.25% 0.0449 -0.1696)
OKLCHoklch(45.25% 0.175 284.8)
XYZxyz(12.9955, 8.2604, 42.4961)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513DB1 #9DB13D
analogous
#3D63B1 #513DB1 #8B3DB1
triadic
#513DB1 #B1513D #3DB151
tetradic
#513DB1 #B13D63 #9DB13D #3DB18B
square
#513DB1 #B13D63 #9DB13D #3DB18B
split-complementary
#513DB1 #B18B3D #63B13D
monochromatic
#271E56 #3C2D83 #513DB1 #7462C9 #9C90D9

Accessibility & contrast

On white

7.92
#513DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#513DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513DB1
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513DB1#FFFFFF#000000##FFFFFF
##513DB11.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#285A71
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513db1;
/* rgb */ color: rgb(81, 61, 177);
/* oklch */ color: oklch(45.2% 0.175 284.8);
Tailwind
colors: {
  custom: {
    50: '#8b74c9',
    500: '#513db1',
    950: '#000000',
  },
}
SCSS
$custom: #513db1;
$custom-light: #8b74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#513db1",
  "rgb": {
    "r": 81,
    "g": 61,
    "b": 177
  },
  "hsl": {
    "h": 250.345,
    "s": 48.739,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45247,
    "c": 0.17546,
    "h": 284.8
  },
  "luminance": 0.08261
}

Semantic roles & 50–950 ramp

primary
#513DB1
secondary
#B9C486
accent
#D850C1
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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