#513BB5#513BB5

#513BB5 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.3% C 0.183 H 284.7°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#513BB5
RGBrgb(81, 59, 181)
HSLhsl(251, 51%, 47%)
HSVhsv(251, 67%, 71%)
CMYKcmyk(55.2%, 67.4%, 0%, 29%)
CIE-LABlab(34.42, 42.22, -61.59)
CIE-LCHlch(34.42, 74.67, 304.43°)
OKLaboklab(45.28% 0.0463 -0.177)
OKLCHoklch(45.28% 0.183 284.7)
XYZxyz(13.2953, 8.2127, 44.5917)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513BB5 #9FB53B
analogous
#3B62B5 #513BB5 #8E3BB5
triadic
#513BB5 #B5513B #3BB551
tetradic
#513BB5 #B53B62 #9FB53B #3BB58E
square
#513BB5 #B53B62 #9FB53B #3BB58E
split-complementary
#513BB5 #B58E3B #62B53B
monochromatic
#281D59 #3C2C87 #513BB5 #7562CC #9D90DB

Accessibility & contrast

On white

7.95
#513BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#513BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513BB5
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513BB5#FFFFFF#000000##FFFFFF
##513BB51.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#245A73
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513bb5;
/* rgb */ color: rgb(81, 59, 181);
/* oklch */ color: oklch(45.3% 0.183 284.7);
Tailwind
colors: {
  custom: {
    50: '#8c73cc',
    500: '#513bb5',
    950: '#000000',
  },
}
SCSS
$custom: #513bb5;
$custom-light: #8c73cc;
$custom-dark: #000000;
JSON
{
  "hex": "#513bb5",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 250.82,
    "s": 50.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45279,
    "c": 0.183,
    "h": 284.7
  },
  "luminance": 0.08213
}

Semantic roles & 50–950 ramp

primary
#513BB5
secondary
#BAC686
accent
#DA4DC1
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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