#513CB1#513CB1

#513CB1 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.1% C 0.177 H 285.1°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#513CB1
RGBrgb(81, 60, 177)
HSLhsl(251, 49%, 46%)
HSVhsv(251, 66%, 69%)
CMYKcmyk(54.2%, 66.1%, 0%, 30.6%)
CIE-LABlab(34.30, 40.41, -59.41)
CIE-LCHlch(34.30, 71.85, 304.22°)
OKLaboklab(45.09% 0.0459 -0.1706)
OKLCHoklch(45.09% 0.177 285.1)
XYZxyz(12.9426, 8.1547, 42.4785)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513CB1 #9CB13C
analogous
#3C62B1 #513CB1 #8C3CB1
triadic
#513CB1 #B1513C #3CB151
tetradic
#513CB1 #B13C62 #9CB13C #3CB18C
square
#513CB1 #B13C62 #9CB13C #3CB18C
split-complementary
#513CB1 #B18C3C #62B13C
monochromatic
#271D56 #3C2D83 #513CB1 #7461C9 #9C8FD9

Accessibility & contrast

On white

7.98
#513CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#513CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513CB1
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513CB1#FFFFFF#000000##FFFFFF
##513CB11.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#285971
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513cb1;
/* rgb */ color: rgb(81, 60, 177);
/* oklch */ color: oklch(45.1% 0.177 285.1);
Tailwind
colors: {
  custom: {
    50: '#8b73c9',
    500: '#513cb1',
    950: '#000000',
  },
}
SCSS
$custom: #513cb1;
$custom-light: #8b73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#513cb1",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 177
  },
  "hsl": {
    "h": 250.769,
    "s": 49.367,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4509,
    "c": 0.17671,
    "h": 285.1
  },
  "luminance": 0.08155
}

Semantic roles & 50–950 ramp

primary
#513CB1
secondary
#B8C485
accent
#D94FC0
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #513CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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