#513397#513397

#513397 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.5% C 0.155 H 292.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#513397
RGBrgb(81, 51, 151)
HSLhsl(258, 50%, 40%)
HSVhsv(258, 66%, 59%)
CMYKcmyk(46.4%, 66.2%, 0%, 40.8%)
CIE-LABlab(30.28, 37.82, -50.29)
CIE-LCHlch(30.28, 62.92, 306.94°)
OKLaboklab(41.53% 0.0583 -0.1438)
OKLCHoklch(41.53% 0.155 292.1)
XYZxyz(10.1615, 6.3510, 29.9626)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513397 #799733
analogous
#334797 #513397 #833397
triadic
#513397 #975133 #339751
tetradic
#513397 #973347 #799733 #339783
square
#513397 #973347 #799733 #339783
split-complementary
#513397 #978333 #479733
monochromatic
#20143C #382469 #513397 #6B47C1 #9074D0

Accessibility & contrast

On white

9.25
#513397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#513397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513397
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513397#FFFFFF#000000##FFFFFF
##5133971.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#3C4B60
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #513397;
/* rgb */ color: rgb(81, 51, 151);
/* oklch */ color: oklch(41.5% 0.155 292.1);
Tailwind
colors: {
  custom: {
    50: '#886cb6',
    500: '#513397',
    950: '#000000',
  },
}
SCSS
$custom: #513397;
$custom-light: #886cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#513397",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 258,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41529,
    "c": 0.1552,
    "h": 292.1
  },
  "luminance": 0.06351
}

Semantic roles & 50–950 ramp

primary
#513397
secondary
#A2B86D
accent
#D94FB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #513397

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

Preview Lab → · Contrast checker → · Palette generator →

#513397 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva