#513FAA#513FAA

#513FAA is a dark, vivid violet. Relative luminance 0.082; OKLCH L 45.0% C 0.164 H 285.4°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#513FAA
RGBrgb(81, 63, 170)
HSLhsl(250, 46%, 46%)
HSVhsv(250, 63%, 67%)
CMYKcmyk(52.4%, 62.9%, 0%, 33.3%)
CIE-LABlab(34.41, 36.48, -55.07)
CIE-LCHlch(34.41, 66.05, 303.52°)
OKLaboklab(44.99% 0.0436 -0.1579)
OKLCHoklch(44.99% 0.164 285.4)
XYZxyz(12.4244, 8.2060, 38.9517)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FAA #98AA3F
analogous
#3F63AA #513FAA #863FAA
triadic
#513FAA #AA513F #3FAA51
tetradic
#513FAA #AA3F63 #98AA3F #3FAA86
square
#513FAA #AA3F63 #98AA3F #3FAA86
split-complementary
#513FAA #AA863F #63AA3F
monochromatic
#261E51 #3C2E7D #513FAA #7262C5 #9A8ED5

Accessibility & contrast

On white

7.95
#513FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#513FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513FAA
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FAA#FFFFFF#000000##FFFFFF
##513FAA1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AD
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#2E596E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513faa;
/* rgb */ color: rgb(81, 63, 170);
/* oklch */ color: oklch(45.0% 0.164 285.4);
Tailwind
colors: {
  custom: {
    50: '#8a75c4',
    500: '#513faa',
    950: '#000000',
  },
}
SCSS
$custom: #513faa;
$custom-light: #8a75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#513faa",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 170
  },
  "hsl": {
    "h": 250.093,
    "s": 45.923,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44992,
    "c": 0.16378,
    "h": 285.4
  },
  "luminance": 0.08207
}

Semantic roles & 50–950 ramp

primary
#513FAA
secondary
#B6C085
accent
#D652BF
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #513FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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