#513C97#513C97

#513C97 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.0% C 0.143 H 289.7°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#513C97
RGBrgb(81, 60, 151)
HSLhsl(254, 43%, 41%)
HSVhsv(254, 60%, 59%)
CMYKcmyk(46.4%, 60.3%, 0%, 40.8%)
CIE-LABlab(32.29, 32.47, -47.03)
CIE-LCHlch(32.29, 57.15, 304.62°)
OKLaboklab(42.99% 0.048 -0.1343)
OKLCHoklch(42.99% 0.143 289.7)
XYZxyz(10.5935, 7.2150, 30.1066)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513C97 #82973C
analogous
#3C5597 #513C97 #7F3C97
triadic
#513C97 #97513C #3C9751
tetradic
#513C97 #973C55 #82973C #3C977F
square
#513C97 #973C55 #82973C #3C977F
split-complementary
#513C97 #977F3C #55973C
monochromatic
#22193F #3A2B6B #513C97 #6C55BB #9281CD

Accessibility & contrast

On white

8.60
#513C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#513C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513C97
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513C97#FFFFFF#000000##FFFFFF
##513C971.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#3C5163
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #513c97;
/* rgb */ color: rgb(81, 60, 151);
/* oklch */ color: oklch(43.0% 0.143 289.7);
Tailwind
colors: {
  custom: {
    50: '#8772b6',
    500: '#513c97',
    950: '#000000',
  },
}
SCSS
$custom: #513c97;
$custom-light: #8772b6;
$custom-dark: #000000;
JSON
{
  "hex": "#513c97",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 253.846,
    "s": 43.128,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42993,
    "c": 0.14258,
    "h": 289.7
  },
  "luminance": 0.07215
}

Semantic roles & 50–950 ramp

primary
#513C97
secondary
#A8B778
accent
#D355B6
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #513C97

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

Preview Lab → · Contrast checker → · Palette generator →

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