#513482#513482

#513482 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.1% C 0.126 H 297.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#513482
RGBrgb(81, 52, 130)
HSLhsl(262, 43%, 36%)
HSVhsv(262, 60%, 51%)
CMYKcmyk(37.7%, 60%, 0%, 49%)
CIE-LABlab(28.95, 31.17, -39.48)
CIE-LCHlch(28.95, 50.30, 308.29°)
OKLaboklab(40.06% 0.0584 -0.112)
OKLCHoklch(40.06% 0.126 297.5)
XYZxyz(8.6496, 5.8169, 21.7818)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513482 #658234
analogous
#343E82 #513482 #783482
triadic
#513482 #825134 #348251
tetradic
#513482 #82343E #658234 #348278
square
#513482 #82343E #658234 #348278
split-complementary
#513482 #827834 #3E8234
monochromatic
#1B112B #362356 #513482 #6C45AE #8D6CC4

Accessibility & contrast

On white

9.71
#513482 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#513482 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513482
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513482#FFFFFF#000000##FFFFFF
##5134821.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4485
Deuteranopia (green-blind)
#184380
Tritanopia (blue-blind)
#464456
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #513482;
/* rgb */ color: rgb(81, 52, 130);
/* oklch */ color: oklch(40.1% 0.126 297.5);
Tailwind
colors: {
  custom: {
    50: '#856da7',
    500: '#513482',
    950: '#000000',
  },
}
SCSS
$custom: #513482;
$custom-light: #856da7;
$custom-dark: #000000;
JSON
{
  "hex": "#513482",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 130
  },
  "hsl": {
    "h": 262.308,
    "s": 42.857,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40064,
    "c": 0.12637,
    "h": 297.5
  },
  "luminance": 0.05817
}

Semantic roles & 50–950 ramp

primary
#513482
secondary
#92AC65
accent
#D355A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #513482

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

Preview Lab → · Contrast checker → · Palette generator →

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