#513792#513792

#513792 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.8% C 0.143 H 292.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#513792
RGBrgb(81, 55, 146)
HSLhsl(257, 45%, 39%)
HSVhsv(257, 62%, 57%)
CMYKcmyk(44.5%, 62.3%, 0%, 42.7%)
CIE-LABlab(30.78, 34.00, -46.43)
CIE-LCHlch(30.78, 57.55, 306.22°)
OKLaboklab(41.77% 0.0541 -0.1325)
OKLCHoklch(41.77% 0.143 292.2)
XYZxyz(9.9464, 6.5567, 27.9301)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#513792 #789237
analogous
#374B92 #513792 #7F3792
triadic
#513792 #925137 #379251
tetradic
#513792 #92374B #789237 #37927F
square
#513792 #92374B #789237 #37927F
split-complementary
#513792 #927F37 #4B9237
monochromatic
#201639 #382666 #513792 #6B4BBB #9077CC

Accessibility & contrast

On white

9.09
#513792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#513792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #513792
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##513792#FFFFFF#000000##FFFFFF
##5137921.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A95
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#3F4C5F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #513792;
/* rgb */ color: rgb(81, 55, 146);
/* oklch */ color: oklch(41.8% 0.143 292.2);
Tailwind
colors: {
  custom: {
    50: '#876fb3',
    500: '#513792',
    950: '#000000',
  },
}
SCSS
$custom: #513792;
$custom-light: #876fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#513792",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 146
  },
  "hsl": {
    "h": 257.143,
    "s": 45.274,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41768,
    "c": 0.14312,
    "h": 292.2
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#513792
secondary
#A1B570
accent
#D553B0
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #513792

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

Preview Lab → · Contrast checker → · Palette generator →

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