#513CB2#513CB2

#513CB2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.2% C 0.178 H 284.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#513CB2
RGBrgb(81, 60, 178)
HSLhsl(251, 50%, 47%)
HSVhsv(251, 66%, 70%)
CMYKcmyk(54.5%, 66.3%, 0%, 30.2%)
CIE-LABlab(34.39, 40.72, -59.87)
CIE-LCHlch(34.39, 72.41, 304.22°)
OKLaboklab(45.18% 0.0458 -0.172)
OKLCHoklch(45.18% 0.178 284.9)
XYZxyz(13.0427, 8.1947, 43.0053)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513CB2 #9DB23C
analogous
#3C62B2 #513CB2 #8C3CB2
triadic
#513CB2 #B2513C #3CB251
tetradic
#513CB2 #B23C62 #9DB23C #3CB28C
square
#513CB2 #B23C62 #9DB23C #3CB28C
split-complementary
#513CB2 #B28C3C #62B23C
monochromatic
#271D56 #3C2D84 #513CB2 #7461CA #9C8FD9

Accessibility & contrast

On white

7.96
#513CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#513CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513CB2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513CB2#FFFFFF#000000##FFFFFF
##513CB21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#275A72
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513cb2;
/* rgb */ color: rgb(81, 60, 178);
/* oklch */ color: oklch(45.2% 0.178 284.9);
Tailwind
colors: {
  custom: {
    50: '#8b73ca',
    500: '#513cb2',
    950: '#000000',
  },
}
SCSS
$custom: #513cb2;
$custom-light: #8b73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#513cb2",
  "rgb": {
    "r": 81,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 250.678,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45175,
    "c": 0.17798,
    "h": 284.9
  },
  "luminance": 0.08195
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #513CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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