#513AB8#513AB8

#513AB8 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.4% C 0.188 H 284.4°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#513AB8
RGBrgb(81, 58, 184)
HSLhsl(251, 52%, 47%)
HSVhsv(251, 68%, 72%)
CMYKcmyk(56%, 68.5%, 0%, 27.8%)
CIE-LABlab(34.47, 43.70, -63.29)
CIE-LCHlch(34.47, 76.91, 304.62°)
OKLaboklab(45.39% 0.0468 -0.182)
OKLCHoklch(45.39% 0.188 284.4)
XYZxyz(13.5555, 8.2353, 46.2134)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513AB8 #A1B83A
analogous
#3A62B8 #513AB8 #903AB8
triadic
#513AB8 #B8513A #3AB851
tetradic
#513AB8 #B83A62 #A1B83A #3AB890
square
#513AB8 #B83A62 #A1B83A #3AB890
split-complementary
#513AB8 #B8903A #62B83A
monochromatic
#281D5B #3D2B89 #513AB8 #7562CD #9E90DC

Accessibility & contrast

On white

7.93
#513AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#513AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513AB8
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513AB8#FFFFFF#000000##FFFFFF
##513AB81.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #513ab8;
/* rgb */ color: rgb(81, 58, 184);
/* oklch */ color: oklch(45.4% 0.188 284.4);
Tailwind
colors: {
  custom: {
    50: '#8c72ce',
    500: '#513ab8',
    950: '#000000',
  },
}
SCSS
$custom: #513ab8;
$custom-light: #8c72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#513ab8",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 184
  },
  "hsl": {
    "h": 250.952,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45391,
    "c": 0.18793,
    "h": 284.4
  },
  "luminance": 0.08236
}

Semantic roles & 50–950 ramp

primary
#513AB8
secondary
#BBC787
accent
#DC4CC1
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #513AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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