#513EA7#513EA7

#513EA7 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.6% C 0.161 H 286.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#513EA7
RGBrgb(81, 62, 167)
HSLhsl(251, 46%, 45%)
HSVhsv(251, 63%, 65%)
CMYKcmyk(51.5%, 62.9%, 0%, 34.5%)
CIE-LABlab(33.95, 36.15, -54.02)
CIE-LCHlch(33.95, 65.00, 303.79°)
OKLaboklab(44.58% 0.0449 -0.1548)
OKLCHoklch(44.58% 0.161 286.2)
XYZxyz(12.0889, 7.9840, 37.4558)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EA7 #94A73E
analogous
#3E60A7 #513EA7 #863EA7
triadic
#513EA7 #A7513E #3EA751
tetradic
#513EA7 #A73E60 #94A73E #3EA786
square
#513EA7 #A73E60 #94A73E #3EA786
split-complementary
#513EA7 #A7863E #60A73E
monochromatic
#261D4E #3B2D7A #513EA7 #715FC3 #988BD4

Accessibility & contrast

On white

8.09
#513EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#513EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513EA7
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EA7#FFFFFF#000000##FFFFFF
##513EA71.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#31576C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #513ea7;
/* rgb */ color: rgb(81, 62, 167);
/* oklch */ color: oklch(44.6% 0.161 286.2);
Tailwind
colors: {
  custom: {
    50: '#8974c2',
    500: '#513ea7',
    950: '#000000',
  },
}
SCSS
$custom: #513ea7;
$custom-light: #8974c2;
$custom-dark: #000000;
JSON
{
  "hex": "#513ea7",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 250.857,
    "s": 45.852,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44584,
    "c": 0.16117,
    "h": 286.2
  },
  "luminance": 0.07985
}

Semantic roles & 50–950 ramp

primary
#513EA7
secondary
#B4BF82
accent
#D652BE
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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