#513EAF#513EAF

#513EAF is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.2% C 0.172 H 284.9°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#513EAF
RGBrgb(81, 62, 175)
HSLhsl(250, 48%, 46%)
HSVhsv(250, 65%, 69%)
CMYKcmyk(53.7%, 64.6%, 0%, 31.4%)
CIE-LABlab(34.58, 38.62, -57.77)
CIE-LCHlch(34.58, 69.49, 303.76°)
OKLaboklab(45.24% 0.0442 -0.1658)
OKLCHoklch(45.24% 0.172 284.9)
XYZxyz(12.8515, 8.2890, 41.4719)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513EAF #9CAF3E
analogous
#3E64AF #513EAF #8A3EAF
triadic
#513EAF #AF513E #3EAF51
tetradic
#513EAF #AF3E64 #9CAF3E #3EAF8A
square
#513EAF #AF3E64 #9CAF3E #3EAF8A
split-complementary
#513EAF #AF8A3E #64AF3E
monochromatic
#271E55 #3C2E82 #513EAF #7463C8 #9C90D8

Accessibility & contrast

On white

7.90
#513EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#513EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513EAF
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513EAF#FFFFFF#000000##FFFFFF
##513EAF1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#2A5A71
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513eaf;
/* rgb */ color: rgb(81, 62, 175);
/* oklch */ color: oklch(45.2% 0.172 284.9);
Tailwind
colors: {
  custom: {
    50: '#8a74c8',
    500: '#513eaf',
    950: '#000000',
  },
}
SCSS
$custom: #513eaf;
$custom-light: #8a74c8;
$custom-dark: #000000;
JSON
{
  "hex": "#513eaf",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 250.088,
    "s": 47.679,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45238,
    "c": 0.17162,
    "h": 284.9
  },
  "luminance": 0.0829
}

Semantic roles & 50–950 ramp

primary
#513EAF
secondary
#B8C386
accent
#D751C1
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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