#513F78#513F78

#513F78 is a dark, moderate violet. Relative luminance 0.067; OKLCH L 41.4% C 0.094 H 296.6°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#513F78
RGBrgb(81, 63, 120)
HSLhsl(259, 31%, 36%)
HSVhsv(259, 48%, 47%)
CMYKcmyk(32.5%, 47.5%, 0%, 52.9%)
CIE-LABlab(31.02, 21.45, -29.90)
CIE-LCHlch(31.02, 36.80, 305.65°)
OKLaboklab(41.4% 0.0421 -0.084)
OKLCHoklch(41.4% 0.094 296.6)
XYZxyz(8.5602, 6.6603, 18.6002)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513F78 #66783F
analogous
#3F4978 #513F78 #6D3F78
triadic
#513F78 #78513F #3F7851
tetradic
#513F78 #783F49 #66783F #3F786D
square
#513F78 #783F49 #66783F #3F786D
split-complementary
#513F78 #786D3F #49783F
monochromatic
#1B1528 #362A50 #513F78 #6C54A0 #8D79B9

Accessibility & contrast

On white

9.01
#513F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#513F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513F78
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513F78#FFFFFF#000000##FFFFFF
##513F781.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D497A
Deuteranopia (green-blind)
#314877
Tritanopia (blue-blind)
#494955
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #513f78;
/* rgb */ color: rgb(81, 63, 120);
/* oklch */ color: oklch(41.4% 0.094 296.6);
Tailwind
colors: {
  custom: {
    50: '#84749f',
    500: '#513f78',
    950: '#000000',
  },
}
SCSS
$custom: #513f78;
$custom-light: #84749f;
$custom-dark: #000000;
JSON
{
  "hex": "#513f78",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 120
  },
  "hsl": {
    "h": 258.947,
    "s": 31.148,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41403,
    "c": 0.09398,
    "h": 296.6
  },
  "luminance": 0.0666
}

Semantic roles & 50–950 ramp

primary
#513F78
secondary
#93A370
accent
#C760A7
background
#F8F7F9
surface
#EFEDF2
border
#CAC8CC
text
#0B080E
muted
#7C7B7E

Preview Lab

Preview with #513F78

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

Preview Lab → · Contrast checker → · Palette generator →

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