#513398#513398

#513398 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.6% C 0.156 H 291.8°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#513398
RGBrgb(81, 51, 152)
HSLhsl(258, 50%, 40%)
HSVhsv(258, 66%, 60%)
CMYKcmyk(46.7%, 66.4%, 0%, 40.4%)
CIE-LABlab(30.36, 38.11, -50.77)
CIE-LCHlch(30.36, 63.49, 306.89°)
OKLaboklab(41.61% 0.0582 -0.1453)
OKLCHoklch(41.61% 0.156 291.8)
XYZxyz(10.2431, 6.3836, 30.3921)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513398 #7A9833
analogous
#334798 #513398 #843398
triadic
#513398 #985133 #339851
tetradic
#513398 #983347 #7A9833 #339884
square
#513398 #983347 #7A9833 #339884
split-complementary
#513398 #988433 #479833
monochromatic
#20143C #39246A #513398 #6B47C1 #9075D1

Accessibility & contrast

On white

9.22
#513398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#513398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513398
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513398#FFFFFF#000000##FFFFFF
##5133981.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#3C4B61
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #513398;
/* rgb */ color: rgb(81, 51, 152);
/* oklch */ color: oklch(41.6% 0.156 291.8);
Tailwind
colors: {
  custom: {
    50: '#886db7',
    500: '#513398',
    950: '#000000',
  },
}
SCSS
$custom: #513398;
$custom-light: #886db7;
$custom-dark: #000000;
JSON
{
  "hex": "#513398",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 257.822,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41611,
    "c": 0.15647,
    "h": 291.8
  },
  "luminance": 0.06384
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #513398

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

Preview Lab → · Contrast checker → · Palette generator →

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