#513281#513281

#513281 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.7% C 0.128 H 298.5°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#513281
RGBrgb(81, 50, 129)
HSLhsl(264, 44%, 35%)
HSVhsv(264, 61%, 51%)
CMYKcmyk(37.2%, 61.2%, 0%, 49.4%)
CIE-LABlab(28.42, 32.09, -39.70)
CIE-LCHlch(28.42, 51.04, 308.95°)
OKLaboklab(39.66% 0.0611 -0.1127)
OKLCHoklch(39.66% 0.128 298.5)
XYZxyz(8.4954, 5.6154, 21.4009)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513281 #628132
analogous
#323B81 #513281 #783281
triadic
#513281 #815132 #328151
tetradic
#513281 #81323B #628132 #328178
square
#513281 #81323B #628132 #328178
split-complementary
#513281 #817832 #3B8132
monochromatic
#1A1029 #352155 #513281 #6D43AD #8D69C5

Accessibility & contrast

On white

9.89
#513281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#513281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513281
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513281#FFFFFF#000000##FFFFFF
##5132811.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044384
Deuteranopia (green-blind)
#15427F
Tritanopia (blue-blind)
#464354
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #513281;
/* rgb */ color: rgb(81, 50, 129);
/* oklch */ color: oklch(39.7% 0.128 298.5);
Tailwind
colors: {
  custom: {
    50: '#856ba6',
    500: '#513281',
    950: '#000000',
  },
}
SCSS
$custom: #513281;
$custom-light: #856ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#513281",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 129
  },
  "hsl": {
    "h": 263.544,
    "s": 44.134,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39658,
    "c": 0.12818,
    "h": 298.5
  },
  "luminance": 0.05616
}

Semantic roles & 50–950 ramp

primary
#513281
secondary
#8FAC62
accent
#D454A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #513281

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

Preview Lab → · Contrast checker → · Palette generator →

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