#513282#513282

#513282 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.7% C 0.129 H 298.1°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#513282
RGBrgb(81, 50, 130)
HSLhsl(263, 44%, 35%)
HSVhsv(263, 62%, 51%)
CMYKcmyk(37.7%, 61.5%, 0%, 49%)
CIE-LABlab(28.49, 32.37, -40.21)
CIE-LCHlch(28.49, 51.62, 308.83°)
OKLaboklab(39.73% 0.0611 -0.1142)
OKLCHoklch(39.73% 0.129 298.1)
XYZxyz(8.5622, 5.6421, 21.7527)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513282 #638232
analogous
#323B82 #513282 #793282
triadic
#513282 #825132 #328251
tetradic
#513282 #82323B #638232 #328279
square
#513282 #82323B #638232 #328279
split-complementary
#513282 #827932 #3B8232
monochromatic
#1A102A #352156 #513282 #6D43AE #8D69C5

Accessibility & contrast

On white

9.87
#513282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#513282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513282
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513282#FFFFFF#000000##FFFFFF
##5132821.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014385
Deuteranopia (green-blind)
#144280
Tritanopia (blue-blind)
#464355
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #513282;
/* rgb */ color: rgb(81, 50, 130);
/* oklch */ color: oklch(39.7% 0.129 298.1);
Tailwind
colors: {
  custom: {
    50: '#856ba7',
    500: '#513282',
    950: '#000000',
  },
}
SCSS
$custom: #513282;
$custom-light: #856ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#513282",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 130
  },
  "hsl": {
    "h": 263.25,
    "s": 44.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39732,
    "c": 0.12949,
    "h": 298.1
  },
  "luminance": 0.05642
}

Semantic roles & 50–950 ramp

primary
#513282
secondary
#90AD63
accent
#D454A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #513282

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

Preview Lab → · Contrast checker → · Palette generator →

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