#513AC2#513AC2

#513AC2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.3% C 0.200 H 283.0°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#513AC2
RGBrgb(81, 58, 194)
HSLhsl(250, 54%, 49%)
HSVhsv(250, 70%, 76%)
CMYKcmyk(58.2%, 70.1%, 0%, 23.9%)
CIE-LABlab(35.34, 46.74, -67.74)
CIE-LCHlch(35.34, 82.30, 304.60°)
OKLaboklab(46.28% 0.0451 -0.1951)
OKLCHoklch(46.28% 0.2 283)
XYZxyz(14.6410, 8.6695, 51.9304)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513AC2 #ABC23A
analogous
#3A67C2 #513AC2 #953AC2
triadic
#513AC2 #C2513A #3AC251
tetradic
#513AC2 #C23A67 #ABC23A #3AC295
square
#513AC2 #C23A67 #ABC23A #3AC295
split-complementary
#513AC2 #C2953A #67C23A
monochromatic
#2A1E64 #3D2C93 #513AC2 #7967D2 #A397E0

Accessibility & contrast

On white

7.68
#513AC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#513AC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513AC2
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513AC2#FFFFFF#000000##FFFFFF
##513AC21.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#0C5E7A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #513ac2;
/* rgb */ color: rgb(81, 58, 194);
/* oklch */ color: oklch(46.3% 0.200 283.0);
Tailwind
colors: {
  custom: {
    50: '#8e72d6',
    500: '#513ac2',
    950: '#000000',
  },
}
SCSS
$custom: #513ac2;
$custom-light: #8e72d6;
$custom-dark: #000000;
JSON
{
  "hex": "#513ac2",
  "rgb": {
    "r": 81,
    "g": 58,
    "b": 194
  },
  "hsl": {
    "h": 250.147,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46283,
    "c": 0.20022,
    "h": 283
  },
  "luminance": 0.0867
}

Semantic roles & 50–950 ramp

primary
#513AC2
secondary
#C1CB8D
accent
#DD4AC4
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #513AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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