#513CB5#513CB5

#513CB5 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.4% C 0.182 H 284.5°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#513CB5
RGBrgb(81, 60, 181)
HSLhsl(250, 50%, 47%)
HSVhsv(250, 67%, 71%)
CMYKcmyk(55.2%, 66.9%, 0%, 29%)
CIE-LABlab(34.63, 41.64, -61.24)
CIE-LCHlch(34.63, 74.06, 304.21°)
OKLaboklab(45.43% 0.0454 -0.176)
OKLCHoklch(45.43% 0.182 284.5)
XYZxyz(13.3472, 8.3165, 44.6090)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513CB5 #A0B53C
analogous
#3C64B5 #513CB5 #8D3CB5
triadic
#513CB5 #B5513C #3CB551
tetradic
#513CB5 #B53C64 #A0B53C #3CB58D
square
#513CB5 #B53C64 #A0B53C #3CB58D
split-complementary
#513CB5 #B58D3C #64B53C
monochromatic
#281E59 #3C2D87 #513CB5 #7563CB #9E91DB

Accessibility & contrast

On white

7.88
#513CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#513CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513CB5
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513CB5#FFFFFF#000000##FFFFFF
##513CB51.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#245B73
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513cb5;
/* rgb */ color: rgb(81, 60, 181);
/* oklch */ color: oklch(45.4% 0.182 284.5);
Tailwind
colors: {
  custom: {
    50: '#8c73cc',
    500: '#513cb5',
    950: '#000000',
  },
}
SCSS
$custom: #513cb5;
$custom-light: #8c73cc;
$custom-dark: #000000;
JSON
{
  "hex": "#513cb5",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 181
  },
  "hsl": {
    "h": 250.413,
    "s": 50.207,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45431,
    "c": 0.18179,
    "h": 284.5
  },
  "luminance": 0.08317
}

Semantic roles & 50–950 ramp

primary
#513CB5
secondary
#BBC687
accent
#DA4EC1
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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