#513191#513191

#513191 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.150 H 294.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#513191
RGBrgb(81, 49, 145)
HSLhsl(260, 49%, 38%)
HSVhsv(260, 66%, 57%)
CMYKcmyk(44.1%, 66.2%, 0%, 43.1%)
CIE-LABlab(29.39, 37.23, -48.06)
CIE-LCHlch(29.39, 60.80, 307.76°)
OKLaboklab(40.74% 0.0612 -0.1373)
OKLCHoklch(40.74% 0.15 294)
XYZxyz(9.6011, 5.9900, 27.4329)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513191 #719131
analogous
#314191 #513191 #813191
triadic
#513191 #915131 #319151
tetradic
#513191 #913141 #719131 #319181
square
#513191 #913141 #719131 #319181
split-complementary
#513191 #918131 #419131
monochromatic
#1E1236 #372263 #513191 #6B41BF #8E6ECE

Accessibility & contrast

On white

9.55
#513191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#513191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513191
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513191#FFFFFF#000000##FFFFFF
##5131911.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#3F485C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #513191;
/* rgb */ color: rgb(81, 49, 145);
/* oklch */ color: oklch(40.7% 0.150 294.0);
Tailwind
colors: {
  custom: {
    50: '#876bb2',
    500: '#513191',
    950: '#000000',
  },
}
SCSS
$custom: #513191;
$custom-light: #876bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#513191",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 145
  },
  "hsl": {
    "h": 260,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40736,
    "c": 0.15031,
    "h": 294
  },
  "luminance": 0.0599
}

Semantic roles & 50–950 ramp

primary
#513191
secondary
#9CB668
accent
#D94FAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #513191

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

Preview Lab → · Contrast checker → · Palette generator →

#513191 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva