#513B95#513B95

#513B95 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.7% C 0.141 H 290.4°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#513B95
RGBrgb(81, 59, 149)
HSLhsl(255, 43%, 41%)
HSVhsv(255, 60%, 58%)
CMYKcmyk(45.6%, 60.4%, 0%, 41.6%)
CIE-LABlab(31.91, 32.48, -46.43)
CIE-LCHlch(31.91, 56.66, 304.97°)
OKLaboklab(42.67% 0.0492 -0.1325)
OKLCHoklch(42.67% 0.141 290.4)
XYZxyz(10.3806, 7.0468, 29.2412)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513B95 #7F953B
analogous
#3B5295 #513B95 #7E3B95
triadic
#513B95 #95513B #3B9551
tetradic
#513B95 #953B52 #7F953B #3B957E
square
#513B95 #953B52 #7F953B #3B957E
split-complementary
#513B95 #957E3B #52953B
monochromatic
#21183D #392A69 #513B95 #6C53BB #917ECC

Accessibility & contrast

On white

8.72
#513B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#513B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513B95
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513B95#FFFFFF#000000##FFFFFF
##513B951.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#004993
Tritanopia (blue-blind)
#3D4F62
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #513b95;
/* rgb */ color: rgb(81, 59, 149);
/* oklch */ color: oklch(42.7% 0.141 290.4);
Tailwind
colors: {
  custom: {
    50: '#8772b5',
    500: '#513b95',
    950: '#000000',
  },
}
SCSS
$custom: #513b95;
$custom-light: #8772b5;
$custom-dark: #000000;
JSON
{
  "hex": "#513b95",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 149
  },
  "hsl": {
    "h": 254.667,
    "s": 43.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4267,
    "c": 0.14132,
    "h": 290.4
  },
  "luminance": 0.07047
}

Semantic roles & 50–950 ramp

primary
#513B95
secondary
#A6B676
accent
#D355B4
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #513B95

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

Preview Lab → · Contrast checker → · Palette generator →

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