#513FA2#513FA2

#513FA2 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.4% C 0.153 H 286.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#513FA2
RGBrgb(81, 63, 162)
HSLhsl(251, 44%, 44%)
HSVhsv(251, 61%, 64%)
CMYKcmyk(50%, 61.1%, 0%, 36.5%)
CIE-LABlab(33.80, 34.00, -51.26)
CIE-LCHlch(33.80, 61.51, 303.56°)
OKLaboklab(44.36% 0.0441 -0.1467)
OKLCHoklch(44.36% 0.153 286.7)
XYZxyz(11.6905, 7.9124, 35.0867)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FA2 #90A23F
analogous
#3F5FA2 #513FA2 #833FA2
triadic
#513FA2 #A2513F #3FA251
tetradic
#513FA2 #A23F5F #90A23F #3FA283
square
#513FA2 #A23F5F #90A23F #3FA283
split-complementary
#513FA2 #A2833F #5FA23F
monochromatic
#251D4A #3B2E76 #513FA2 #705EC0 #978AD1

Accessibility & contrast

On white

8.13
#513FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#513FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513FA2
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FA2#FFFFFF#000000##FFFFFF
##513FA21.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#34566A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #513fa2;
/* rgb */ color: rgb(81, 63, 162);
/* oklch */ color: oklch(44.4% 0.153 286.7);
Tailwind
colors: {
  custom: {
    50: '#8875be',
    500: '#513fa2',
    950: '#000000',
  },
}
SCSS
$custom: #513fa2;
$custom-light: #8875be;
$custom-dark: #000000;
JSON
{
  "hex": "#513fa2",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 250.909,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44355,
    "c": 0.15315,
    "h": 286.7
  },
  "luminance": 0.07913
}

Semantic roles & 50–950 ramp

primary
#513FA2
secondary
#B1BC81
accent
#D454BD
background
#F8F7FB
surface
#F0EDF7
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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