#513FA8#513FA8

#513FA8 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.8% C 0.161 H 285.8°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#513FA8
RGBrgb(81, 63, 168)
HSLhsl(250, 45%, 45%)
HSVhsv(250, 63%, 66%)
CMYKcmyk(51.8%, 62.5%, 0%, 34.1%)
CIE-LABlab(34.25, 35.86, -54.12)
CIE-LCHlch(34.25, 64.92, 303.53°)
OKLaboklab(44.83% 0.0438 -0.1551)
OKLCHoklch(44.83% 0.161 285.8)
XYZxyz(12.2366, 8.1309, 37.9628)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513FA8 #96A83F
analogous
#3F61A8 #513FA8 #863FA8
triadic
#513FA8 #A8513F #3FA851
tetradic
#513FA8 #A83F61 #96A83F #3FA886
square
#513FA8 #A83F61 #96A83F #3FA886
split-complementary
#513FA8 #A8863F #61A83F
monochromatic
#261E4F #3C2E7B #513FA8 #7261C4 #998DD4

Accessibility & contrast

On white

8.00
#513FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513FA8
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513FA8#FFFFFF#000000##FFFFFF
##513FA81.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#30586D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #513fa8;
/* rgb */ color: rgb(81, 63, 168);
/* oklch */ color: oklch(44.8% 0.161 285.8);
Tailwind
colors: {
  custom: {
    50: '#8975c3',
    500: '#513fa8',
    950: '#000000',
  },
}
SCSS
$custom: #513fa8;
$custom-light: #8975c3;
$custom-dark: #000000;
JSON
{
  "hex": "#513fa8",
  "rgb": {
    "r": 81,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 250.286,
    "s": 45.455,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44831,
    "c": 0.16115,
    "h": 285.8
  },
  "luminance": 0.08131
}

Semantic roles & 50–950 ramp

primary
#513FA8
secondary
#B5BF84
accent
#D553BF
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #513FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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