#513CB7#513CB7

#513CB7 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.6% C 0.184 H 284.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#513CB7
RGBrgb(81, 60, 183)
HSLhsl(250, 51%, 48%)
HSVhsv(250, 67%, 72%)
CMYKcmyk(55.7%, 67.2%, 0%, 28.2%)
CIE-LABlab(34.80, 42.25, -62.15)
CIE-LCHlch(34.80, 75.16, 304.21°)
OKLaboklab(45.6% 0.0451 -0.1787)
OKLCHoklch(45.6% 0.184 284.2)
XYZxyz(13.5538, 8.3991, 45.6976)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513CB7 #A2B73C
analogous
#3C64B7 #513CB7 #8E3CB7
triadic
#513CB7 #B7513C #3CB751
tetradic
#513CB7 #B73C64 #A2B73C #3CB78E
square
#513CB7 #B73C64 #A2B73C #3CB78E
split-complementary
#513CB7 #B78E3C #64B73C
monochromatic
#281E5B #3D2D89 #513CB7 #7664CC #9F92DB

Accessibility & contrast

On white

7.84
#513CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#513CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513CB7
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513CB7#FFFFFF#000000##FFFFFF
##513CB71.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#215B74
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #513cb7;
/* rgb */ color: rgb(81, 60, 183);
/* oklch */ color: oklch(45.6% 0.184 284.2);
Tailwind
colors: {
  custom: {
    50: '#8c73ce',
    500: '#513cb7',
    950: '#000000',
  },
}
SCSS
$custom: #513cb7;
$custom-light: #8c73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#513cb7",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 183
  },
  "hsl": {
    "h": 250.244,
    "s": 50.617,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45604,
    "c": 0.18431,
    "h": 284.2
  },
  "luminance": 0.084
}

Semantic roles & 50–950 ramp

primary
#513CB7
secondary
#BCC688
accent
#DA4EC2
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #513CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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