#513FAB#513FAB

#513FAB is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.1% C 0.165 H 285.3°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#513FAB
RGBrgb(81, 63, 171)
HSLhsl(250, 46%, 46%)
HSVhsv(250, 63%, 67%)
CMYKcmyk(52.6%, 63.2%, 0%, 32.9%)
CIE-LABlab(34.49, 36.79, -55.54)
CIE-LCHlch(34.49, 66.62, 303.52°)
OKLaboklab(45.07% 0.0435 -0.1593)
OKLCHoklch(45.07% 0.165 285.3)
XYZxyz(12.5193, 8.2440, 39.4518)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FAB #99AB3F
analogous
#3F63AB #513FAB #873FAB
triadic
#513FAB #AB513F #3FAB51
tetradic
#513FAB #AB3F63 #99AB3F #3FAB87
square
#513FAB #AB3F63 #99AB3F #3FAB87
split-complementary
#513FAB #AB873F #63AB3F
monochromatic
#271E52 #3C2F7E #513FAB #7362C5 #9B8FD6

Accessibility & contrast

On white

7.93
#513FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513FAB
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FAB#FFFFFF#000000##FFFFFF
##513FAB1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#2D596F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513fab;
/* rgb */ color: rgb(81, 63, 171);
/* oklch */ color: oklch(45.1% 0.165 285.3);
Tailwind
colors: {
  custom: {
    50: '#8a75c5',
    500: '#513fab',
    950: '#000000',
  },
}
SCSS
$custom: #513fab;
$custom-light: #8a75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#513fab",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 171
  },
  "hsl": {
    "h": 250,
    "s": 46.154,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45073,
    "c": 0.1651,
    "h": 285.3
  },
  "luminance": 0.08245
}

Semantic roles & 50–950 ramp

primary
#513FAB
secondary
#B7C185
accent
#D652C0
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #513FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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