#513EA8#513EA8

#513EA8 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.7% C 0.162 H 286.0°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#513EA8
RGBrgb(81, 62, 168)
HSLhsl(251, 46%, 45%)
HSVhsv(251, 63%, 66%)
CMYKcmyk(51.8%, 63.1%, 0%, 34.1%)
CIE-LABlab(34.03, 36.46, -54.49)
CIE-LCHlch(34.03, 65.56, 303.79°)
OKLaboklab(44.67% 0.0448 -0.1562)
OKLCHoklch(44.67% 0.162 286)
XYZxyz(12.1817, 8.0211, 37.9445)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EA8 #95A83E
analogous
#3E60A8 #513EA8 #863EA8
triadic
#513EA8 #A8513E #3EA851
tetradic
#513EA8 #A83E60 #95A83E #3EA886
square
#513EA8 #A83E60 #95A83E #3EA886
split-complementary
#513EA8 #A8863E #60A83E
monochromatic
#261D4F #3B2E7B #513EA8 #715FC4 #998CD5

Accessibility & contrast

On white

8.06
#513EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513EA8
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EA8#FFFFFF#000000##FFFFFF
##513EA81.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#30576D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #513ea8;
/* rgb */ color: rgb(81, 62, 168);
/* oklch */ color: oklch(44.7% 0.162 286.0);
Tailwind
colors: {
  custom: {
    50: '#8974c3',
    500: '#513ea8',
    950: '#000000',
  },
}
SCSS
$custom: #513ea8;
$custom-light: #8974c3;
$custom-dark: #000000;
JSON
{
  "hex": "#513ea8",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 168
  },
  "hsl": {
    "h": 250.755,
    "s": 46.087,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44665,
    "c": 0.16248,
    "h": 286
  },
  "luminance": 0.08022
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #513EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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