#513985#513985

#513985 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.1% C 0.123 H 295.0°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#513985
RGBrgb(81, 57, 133)
HSLhsl(259, 40%, 37%)
HSVhsv(259, 57%, 52%)
CMYKcmyk(39.1%, 57.1%, 0%, 47.8%)
CIE-LABlab(30.32, 28.97, -39.13)
CIE-LCHlch(30.32, 48.69, 306.51°)
OKLaboklab(41.14% 0.0518 -0.111)
OKLCHoklch(41.14% 0.123 295)
XYZxyz(9.0890, 6.3689, 22.9362)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513985 #6D8539
analogous
#394785 #513985 #773985
triadic
#513985 #855139 #398551
tetradic
#513985 #853947 #6D8539 #398577
square
#513985 #853947 #6D8539 #398577
split-complementary
#513985 #857739 #478539
monochromatic
#1D142F #37275A #513985 #6B4BB0 #8E75C4

Accessibility & contrast

On white

9.24
#513985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#513985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513985
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513985#FFFFFF#000000##FFFFFF
##5139851.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154888
Deuteranopia (green-blind)
#1D4683
Tritanopia (blue-blind)
#444959
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #513985;
/* rgb */ color: rgb(81, 57, 133);
/* oklch */ color: oklch(41.1% 0.123 295.0);
Tailwind
colors: {
  custom: {
    50: '#8570a9',
    500: '#513985',
    950: '#000000',
  },
}
SCSS
$custom: #513985;
$custom-light: #8570a9;
$custom-dark: #000000;
JSON
{
  "hex": "#513985",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 133
  },
  "hsl": {
    "h": 258.947,
    "s": 40,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41144,
    "c": 0.12253,
    "h": 295
  },
  "luminance": 0.06369
}

Semantic roles & 50–950 ramp

primary
#513985
secondary
#99AD6D
accent
#D058AA
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #513985

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

Preview Lab → · Contrast checker → · Palette generator →

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