#513472#513472

#513472 is a dark, moderate violet. Relative luminance 0.054; OKLCH L 39.0% C 0.105 H 303.5°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#513472
RGBrgb(81, 52, 114)
HSLhsl(268, 37%, 33%)
HSVhsv(268, 54%, 45%)
CMYKcmyk(28.9%, 54.4%, 0%, 55.3%)
CIE-LABlab(27.90, 26.73, -31.07)
CIE-LCHlch(27.90, 40.98, 310.71°)
OKLaboklab(38.96% 0.0578 -0.0874)
OKLCHoklch(38.96% 0.105 303.5)
XYZxyz(7.6579, 5.4202, 16.5591)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513472 #557234
analogous
#343672 #513472 #703472
triadic
#513472 #725134 #347251
tetradic
#513472 #723436 #557234 #347270
square
#513472 #723436 #557234 #347270
split-complementary
#513472 #727034 #367234
monochromatic
#150E1E #332148 #513472 #6F479C #8E67BA

Accessibility & contrast

On white

10.08
#513472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#513472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513472
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513472#FFFFFF#000000##FFFFFF
##5134721.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204174
Deuteranopia (green-blind)
#284270
Tritanopia (blue-blind)
#4B3F4E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #513472;
/* rgb */ color: rgb(81, 52, 114);
/* oklch */ color: oklch(39.0% 0.105 303.5);
Tailwind
colors: {
  custom: {
    50: '#846c9b',
    500: '#513472',
    950: '#000000',
  },
}
SCSS
$custom: #513472;
$custom-light: #846c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#513472",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 114
  },
  "hsl": {
    "h": 268.065,
    "s": 37.349,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38957,
    "c": 0.10479,
    "h": 303.5
  },
  "luminance": 0.0542
}

Semantic roles & 50–950 ramp

primary
#513472
secondary
#83A260
accent
#CD5A98
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #513472

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

Preview Lab → · Contrast checker → · Palette generator →

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