#513495#513495

#513495 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.5% C 0.151 H 292.3°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#513495
RGBrgb(81, 52, 149)
HSLhsl(258, 48%, 39%)
HSVhsv(258, 65%, 58%)
CMYKcmyk(45.6%, 65.1%, 0%, 41.6%)
CIE-LABlab(30.34, 36.65, -48.98)
CIE-LCHlch(30.34, 61.17, 306.81°)
OKLaboklab(41.52% 0.0574 -0.14)
OKLCHoklch(41.52% 0.151 292.3)
XYZxyz(10.0446, 6.3749, 29.1292)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513495 #789534
analogous
#344895 #513495 #823495
triadic
#513495 #955134 #349551
tetradic
#513495 #953448 #789534 #349582
square
#513495 #953448 #789534 #349582
split-complementary
#513495 #958234 #489534
monochromatic
#20143A #382468 #513495 #6B47BF #9075CF

Accessibility & contrast

On white

9.23
#513495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513495
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513495#FFFFFF#000000##FFFFFF
##5134951.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004998
Deuteranopia (green-blind)
#004693
Tritanopia (blue-blind)
#3D4B5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #513495;
/* rgb */ color: rgb(81, 52, 149);
/* oklch */ color: oklch(41.5% 0.151 292.3);
Tailwind
colors: {
  custom: {
    50: '#886db5',
    500: '#513495',
    950: '#000000',
  },
}
SCSS
$custom: #513495;
$custom-light: #886db5;
$custom-dark: #000000;
JSON
{
  "hex": "#513495",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 149
  },
  "hsl": {
    "h": 257.938,
    "s": 48.259,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41522,
    "c": 0.15128,
    "h": 292.3
  },
  "luminance": 0.06375
}

Semantic roles & 50–950 ramp

primary
#513495
secondary
#A1B76E
accent
#D850AF
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #513495

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

Preview Lab → · Contrast checker → · Palette generator →

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