#513A7B#513A7B

#513A7B is a dark, moderate violet. Relative luminance 0.062; OKLCH L 40.6% C 0.107 H 297.8°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#513A7B
RGBrgb(81, 58, 123)
HSLhsl(261, 36%, 35%)
HSVhsv(261, 53%, 48%)
CMYKcmyk(34.1%, 52.8%, 0%, 51.8%)
CIE-LABlab(29.92, 25.47, -33.53)
CIE-LCHlch(29.92, 42.11, 307.23°)
OKLaboklab(40.64% 0.0499 -0.0946)
OKLCHoklch(40.64% 0.107 297.8)
XYZxyz(8.4807, 6.2054, 19.4860)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513A7B #647B3A
analogous
#3A437B #513A7B #713A7B
triadic
#513A7B #7B513A #3A7B51
tetradic
#513A7B #7B3A43 #647B3A #3A7B71
square
#513A7B #7B3A43 #647B3A #3A7B71
split-complementary
#513A7B #7B713A #437B3A
monochromatic
#1A1328 #362651 #513A7B #6C4EA5 #8D73BD

Accessibility & contrast

On white

9.37
#513A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#513A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513A7B
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513A7B#FFFFFF#000000##FFFFFF
##513A7B1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477D
Deuteranopia (green-blind)
#284679
Tritanopia (blue-blind)
#484755
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #513a7b;
/* rgb */ color: rgb(81, 58, 123);
/* oklch */ color: oklch(40.6% 0.107 297.8);
Tailwind
colors: {
  custom: {
    50: '#8471a1',
    500: '#513a7b',
    950: '#000000',
  },
}
SCSS
$custom: #513a7b;
$custom-light: #8471a1;
$custom-dark: #000000;
JSON
{
  "hex": "#513a7b",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 123
  },
  "hsl": {
    "h": 261.231,
    "s": 35.912,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4064,
    "c": 0.10693,
    "h": 297.8
  },
  "luminance": 0.06206
}

Semantic roles & 50–950 ramp

primary
#513A7B
secondary
#91A66B
accent
#CC5CA4
background
#F8F6FA
surface
#EFECF3
border
#CAC7CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #513A7B

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

Preview Lab → · Contrast checker → · Palette generator →

#513A7B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva