#513F97#513F97

#513F97 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.5% C 0.138 H 288.7°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#513F97
RGBrgb(81, 63, 151)
HSLhsl(252, 41%, 42%)
HSVhsv(252, 58%, 59%)
CMYKcmyk(46.4%, 58.3%, 0%, 40.8%)
CIE-LABlab(33.00, 30.62, -45.89)
CIE-LCHlch(33.00, 55.17, 303.72°)
OKLaboklab(43.52% 0.0444 -0.1309)
OKLCHoklch(43.52% 0.138 288.7)
XYZxyz(10.7552, 7.5383, 30.1605)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513F97 #85973F
analogous
#3F5997 #513F97 #7D3F97
triadic
#513F97 #97513F #3F9751
tetradic
#513F97 #973F59 #85973F #3F977D
square
#513F97 #973F59 #85973F #3F977D
split-complementary
#513F97 #977D3F #59973F
monochromatic
#231B41 #3A2D6C #513F97 #6D59BA #9385CC

Accessibility & contrast

On white

8.37
#513F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#513F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513F97
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513F97#FFFFFF#000000##FFFFFF
##513F971.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05509A
Deuteranopia (green-blind)
#084B95
Tritanopia (blue-blind)
#3B5365
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #513f97;
/* rgb */ color: rgb(81, 63, 151);
/* oklch */ color: oklch(43.5% 0.138 288.7);
Tailwind
colors: {
  custom: {
    50: '#8774b6',
    500: '#513f97',
    950: '#000000',
  },
}
SCSS
$custom: #513f97;
$custom-light: #8774b6;
$custom-dark: #000000;
JSON
{
  "hex": "#513f97",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 252.273,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43516,
    "c": 0.13819,
    "h": 288.7
  },
  "luminance": 0.07539
}

Semantic roles & 50–950 ramp

primary
#513F97
secondary
#AAB67C
accent
#D157B8
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #513F97

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

Preview Lab → · Contrast checker → · Palette generator →

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