#513EA2#513EA2

#513EA2 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.2% C 0.155 H 287.0°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#513EA2
RGBrgb(81, 62, 162)
HSLhsl(251, 45%, 44%)
HSVhsv(251, 62%, 64%)
CMYKcmyk(50%, 61.7%, 0%, 36.5%)
CIE-LABlab(33.57, 34.61, -51.63)
CIE-LCHlch(33.57, 62.16, 303.84°)
OKLaboklab(44.19% 0.0452 -0.1478)
OKLCHoklch(44.19% 0.155 287)
XYZxyz(11.6356, 7.8027, 35.0684)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EA2 #8FA23E
analogous
#3E5DA2 #513EA2 #833EA2
triadic
#513EA2 #A2513E #3EA251
tetradic
#513EA2 #A23E5D #8FA23E #3EA283
square
#513EA2 #A23E5D #8FA23E #3EA283
split-complementary
#513EA2 #A2833E #5DA23E
monochromatic
#251C49 #3B2D76 #513EA2 #6F5CC1 #9789D2

Accessibility & contrast

On white

8.20
#513EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#513EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513EA2
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EA2#FFFFFF#000000##FFFFFF
##513EA21.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#35556A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #513ea2;
/* rgb */ color: rgb(81, 62, 162);
/* oklch */ color: oklch(44.2% 0.155 287.0);
Tailwind
colors: {
  custom: {
    50: '#8974be',
    500: '#513ea2',
    950: '#000000',
  },
}
SCSS
$custom: #513ea2;
$custom-light: #8974be;
$custom-dark: #000000;
JSON
{
  "hex": "#513ea2",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 251.4,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44186,
    "c": 0.15453,
    "h": 287
  },
  "luminance": 0.07803
}

Semantic roles & 50–950 ramp

primary
#513EA2
secondary
#B1BC80
accent
#D453BC
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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