#513FA6#513FA6

#513FA6 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.7% C 0.159 H 286.1°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#513FA6
RGBrgb(81, 63, 166)
HSLhsl(250, 45%, 45%)
HSVhsv(250, 62%, 65%)
CMYKcmyk(51.2%, 62%, 0%, 34.9%)
CIE-LABlab(34.10, 35.24, -53.17)
CIE-LCHlch(34.10, 63.79, 303.54°)
OKLaboklab(44.67% 0.0439 -0.1523)
OKLCHoklch(44.67% 0.159 286.1)
XYZxyz(12.0517, 8.0569, 36.9891)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FA6 #94A63F
analogous
#3F61A6 #513FA6 #843FA6
triadic
#513FA6 #A6513F #3FA651
tetradic
#513FA6 #A63F61 #94A63F #3FA684
square
#513FA6 #A63F61 #94A63F #3FA684
split-complementary
#513FA6 #A6843F #61A63F
monochromatic
#261D4D #3B2E7A #513FA6 #7160C3 #988CD3

Accessibility & contrast

On white

8.04
#513FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#513FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513FA6
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FA6#FFFFFF#000000##FFFFFF
##513FA61.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#32576C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #513fa6;
/* rgb */ color: rgb(81, 63, 166);
/* oklch */ color: oklch(44.7% 0.159 286.1);
Tailwind
colors: {
  custom: {
    50: '#8975c1',
    500: '#513fa6',
    950: '#000000',
  },
}
SCSS
$custom: #513fa6;
$custom-light: #8975c1;
$custom-dark: #000000;
JSON
{
  "hex": "#513fa6",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 250.485,
    "s": 44.978,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44671,
    "c": 0.1585,
    "h": 286.1
  },
  "luminance": 0.08058
}

Semantic roles & 50–950 ramp

primary
#513FA6
secondary
#B4BE83
accent
#D553BE
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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