#513E97#513E97

#513E97 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.3% C 0.140 H 289.1°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#513E97
RGBrgb(81, 62, 151)
HSLhsl(253, 42%, 42%)
HSVhsv(253, 59%, 59%)
CMYKcmyk(46.4%, 58.9%, 0%, 40.8%)
CIE-LABlab(32.76, 31.24, -46.27)
CIE-LCHlch(32.76, 55.83, 304.03°)
OKLaboklab(43.34% 0.0456 -0.132)
OKLCHoklch(43.34% 0.14 289.1)
XYZxyz(10.7003, 7.4285, 30.1422)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513E97 #84973E
analogous
#3E5897 #513E97 #7E3E97
triadic
#513E97 #97513E #3E9751
tetradic
#513E97 #973E58 #84973E #3E977E
square
#513E97 #973E58 #84973E #3E977E
split-complementary
#513E97 #977E3E #58973E
monochromatic
#221A40 #3A2C6C #513E97 #6D58BA #9383CC

Accessibility & contrast

On white

8.45
#513E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#513E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513E97
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513E97#FFFFFF#000000##FFFFFF
##513E971.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#044B95
Tritanopia (blue-blind)
#3B5264
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #513e97;
/* rgb */ color: rgb(81, 62, 151);
/* oklch */ color: oklch(43.3% 0.140 289.1);
Tailwind
colors: {
  custom: {
    50: '#8774b6',
    500: '#513e97',
    950: '#000000',
  },
}
SCSS
$custom: #513e97;
$custom-light: #8774b6;
$custom-dark: #000000;
JSON
{
  "hex": "#513e97",
  "rgb": {
    "r": 81,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 252.809,
    "s": 41.784,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4334,
    "c": 0.13966,
    "h": 289.1
  },
  "luminance": 0.07429
}

Semantic roles & 50–950 ramp

primary
#513E97
secondary
#AAB67A
accent
#D256B7
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #513E97

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

Preview Lab → · Contrast checker → · Palette generator →

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