#513BB8#513BB8

#513BB8 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.187 H 284.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#513BB8
RGBrgb(81, 59, 184)
HSLhsl(251, 51%, 48%)
HSVhsv(251, 68%, 72%)
CMYKcmyk(56%, 67.9%, 0%, 27.8%)
CIE-LABlab(34.68, 43.13, -62.95)
CIE-LCHlch(34.68, 76.31, 304.42°)
OKLaboklab(45.54% 0.0459 -0.181)
OKLCHoklch(45.54% 0.187 284.2)
XYZxyz(13.6064, 8.3371, 46.2304)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513BB8 #A2B83B
analogous
#3B64B8 #513BB8 #8F3BB8
triadic
#513BB8 #B8513B #3BB851
tetradic
#513BB8 #B83B64 #A2B83B #3BB88F
square
#513BB8 #B83B64 #A2B83B #3BB88F
split-complementary
#513BB8 #B88F3B #64B83B
monochromatic
#281D5B #3D2C8A #513BB8 #7663CD #9F92DC

Accessibility & contrast

On white

7.87
#513BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#513BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513BB8
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513BB8#FFFFFF#000000##FFFFFF
##513BB81.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#004DB6
Tritanopia (blue-blind)
#205B75
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #513bb8;
/* rgb */ color: rgb(81, 59, 184);
/* oklch */ color: oklch(45.5% 0.187 284.2);
Tailwind
colors: {
  custom: {
    50: '#8c73ce',
    500: '#513bb8',
    950: '#000000',
  },
}
SCSS
$custom: #513bb8;
$custom-light: #8c73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#513bb8",
  "rgb": {
    "r": 81,
    "g": 59,
    "b": 184
  },
  "hsl": {
    "h": 250.56,
    "s": 51.44,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4554,
    "c": 0.18675,
    "h": 284.2
  },
  "luminance": 0.08338
}

Semantic roles & 50–950 ramp

primary
#513BB8
secondary
#BCC788
accent
#DB4DC2
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #513BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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