#513FA7#513FA7

#513FA7 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.8% C 0.160 H 285.9°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#513FA7
RGBrgb(81, 63, 167)
HSLhsl(250, 45%, 45%)
HSVhsv(250, 62%, 65%)
CMYKcmyk(51.5%, 62.3%, 0%, 34.5%)
CIE-LABlab(34.18, 35.55, -53.65)
CIE-LCHlch(34.18, 64.36, 303.53°)
OKLaboklab(44.75% 0.0438 -0.1537)
OKLCHoklch(44.75% 0.16 285.9)
XYZxyz(12.1438, 8.0938, 37.4741)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FA7 #95A73F
analogous
#3F61A7 #513FA7 #853FA7
triadic
#513FA7 #A7513F #3FA751
tetradic
#513FA7 #A73F61 #95A73F #3FA785
square
#513FA7 #A73F61 #95A73F #3FA785
split-complementary
#513FA7 #A7853F #61A73F
monochromatic
#261D4E #3B2E7B #513FA7 #7160C3 #998DD4

Accessibility & contrast

On white

8.02
#513FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#513FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513FA7
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FA7#FFFFFF#000000##FFFFFF
##513FA71.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #513fa7;
/* rgb */ color: rgb(81, 63, 167);
/* oklch */ color: oklch(44.8% 0.160 285.9);
Tailwind
colors: {
  custom: {
    50: '#8975c2',
    500: '#513fa7',
    950: '#000000',
  },
}
SCSS
$custom: #513fa7;
$custom-light: #8975c2;
$custom-dark: #000000;
JSON
{
  "hex": "#513fa7",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 250.385,
    "s": 45.217,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44751,
    "c": 0.15982,
    "h": 285.9
  },
  "luminance": 0.08094
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #513FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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