#513671#513671

#513671 is a dark, moderate violet. Relative luminance 0.056; OKLCH L 39.3% C 0.100 H 303.2°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#513671
RGBrgb(81, 54, 113)
HSLhsl(267, 35%, 33%)
HSVhsv(267, 52%, 44%)
CMYKcmyk(28.3%, 52.2%, 0%, 55.7%)
CIE-LABlab(28.33, 25.21, -29.75)
CIE-LCHlch(28.33, 39.00, 310.28°)
OKLaboklab(39.25% 0.0548 -0.0835)
OKLCHoklch(39.25% 0.1 303.2)
XYZxyz(7.6925, 5.5799, 16.2914)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513671 #567136
analogous
#363871 #513671 #6E3671
triadic
#513671 #715136 #367151
tetradic
#513671 #713638 #567136 #36716E
square
#513671 #713638 #567136 #36716E
split-complementary
#513671 #716E36 #387136
monochromatic
#160E1E #332248 #513671 #6F4A9A #8D6AB8

Accessibility & contrast

On white

9.92
#513671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #513671
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513671#FFFFFF#000000##FFFFFF
##5136711.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244273
Deuteranopia (green-blind)
#2B4370
Tritanopia (blue-blind)
#4B414E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #513671;
/* rgb */ color: rgb(81, 54, 113);
/* oklch */ color: oklch(39.3% 0.100 303.2);
Tailwind
colors: {
  custom: {
    50: '#846e9a',
    500: '#513671',
    950: '#000000',
  },
}
SCSS
$custom: #513671;
$custom-light: #846e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#513671",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 113
  },
  "hsl": {
    "h": 267.458,
    "s": 35.329,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39254,
    "c": 0.09989,
    "h": 303.2
  },
  "luminance": 0.0558
}

Semantic roles & 50–950 ramp

primary
#513671
secondary
#84A062
accent
#CB5C99
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #513671

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

Preview Lab → · Contrast checker → · Palette generator →

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