#513091#513091

#513091 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.152 H 294.3°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#513091
RGBrgb(81, 48, 145)
HSLhsl(260, 50%, 38%)
HSVhsv(260, 67%, 57%)
CMYKcmyk(44.1%, 66.9%, 0%, 43.1%)
CIE-LABlab(29.18, 37.80, -48.41)
CIE-LCHlch(29.18, 61.41, 307.98°)
OKLaboklab(40.58% 0.0623 -0.1383)
OKLCHoklch(40.58% 0.152 294.3)
XYZxyz(9.5597, 5.9073, 27.4191)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513091 #709130
analogous
#304091 #513091 #813091
triadic
#513091 #915130 #309151
tetradic
#513091 #913040 #709130 #309181
square
#513091 #913040 #709130 #309181
split-complementary
#513091 #918130 #409130
monochromatic
#1E1235 #372163 #513091 #6B3FBF #8E6DCF

Accessibility & contrast

On white

9.63
#513091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#513091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513091
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513091#FFFFFF#000000##FFFFFF
##5130911.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #513091;
/* rgb */ color: rgb(81, 48, 145);
/* oklch */ color: oklch(40.6% 0.152 294.3);
Tailwind
colors: {
  custom: {
    50: '#876ab2',
    500: '#513091',
    950: '#000000',
  },
}
SCSS
$custom: #513091;
$custom-light: #876ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#513091",
  "rgb": {
    "r": 81,
    "g": 48,
    "b": 145
  },
  "hsl": {
    "h": 260.412,
    "s": 50.259,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40584,
    "c": 0.15169,
    "h": 294.3
  },
  "luminance": 0.05908
}

Semantic roles & 50–950 ramp

primary
#513091
secondary
#9BB667
accent
#DA4EAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #513091

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

Preview Lab → · Contrast checker → · Palette generator →

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