#513CB8#513CB8

#513CB8 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.7% C 0.186 H 284.0°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#513CB8
RGBrgb(81, 60, 184)
HSLhsl(250, 51%, 48%)
HSVhsv(250, 67%, 72%)
CMYKcmyk(56%, 67.4%, 0%, 27.8%)
CIE-LABlab(34.88, 42.56, -62.61)
CIE-LCHlch(34.88, 75.70, 304.21°)
OKLaboklab(45.69% 0.045 -0.18)
OKLCHoklch(45.69% 0.186 284)
XYZxyz(13.6583, 8.4409, 46.2477)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513CB8 #A3B83C
analogous
#3C65B8 #513CB8 #8F3CB8
triadic
#513CB8 #B8513C #3CB851
tetradic
#513CB8 #B83C65 #A3B83C #3CB88F
square
#513CB8 #B83C65 #A3B83C #3CB88F
split-complementary
#513CB8 #B88F3C #65B83C
monochromatic
#281E5C #3D2D8A #513CB8 #7665CD #9F93DC

Accessibility & contrast

On white

7.81
#513CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#513CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513CB8
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513CB8#FFFFFF#000000##FFFFFF
##513CB81.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#004EB6
Tritanopia (blue-blind)
#205C75
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #513cb8;
/* rgb */ color: rgb(81, 60, 184);
/* oklch */ color: oklch(45.7% 0.186 284.0);
Tailwind
colors: {
  custom: {
    50: '#8c73ce',
    500: '#513cb8',
    950: '#000000',
  },
}
SCSS
$custom: #513cb8;
$custom-light: #8c73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#513cb8",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 184
  },
  "hsl": {
    "h": 250.161,
    "s": 50.82,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4569,
    "c": 0.18556,
    "h": 284
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

primary
#513CB8
secondary
#BCC789
accent
#DA4DC2
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #513CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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