#511785#511785

#511785 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.168 H 302.3°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#511785
RGBrgb(81, 23, 133)
HSLhsl(272, 71%, 31%)
HSVhsv(272, 83%, 52%)
CMYKcmyk(39.1%, 82.7%, 0%, 47.8%)
CIE-LABlab(23.85, 46.72, -49.62)
CIE-LCHlch(23.85, 68.15, 313.28°)
OKLaboklab(36.5% 0.0894 -0.1417)
OKLCHoklch(36.5% 0.168 302.3)
XYZxyz(7.9324, 4.0556, 22.5506)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511785 #4B8517
analogous
#1A1785 #511785 #851782
triadic
#511785 #855117 #178551
tetradic
#511785 #851A17 #4B8517 #178285
square
#511785 #851A17 #4B8517 #178285
split-complementary
#511785 #828517 #17851A
monochromatic
#11051D #310E51 #511785 #7120B9 #903ADD

Accessibility & contrast

On white

11.59
#511785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#511785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511785
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511785#FFFFFF#000000##FFFFFF
##5117851.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003883
Tritanopia (blue-blind)
#46354F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511785;
/* rgb */ color: rgb(81, 23, 133);
/* oklch */ color: oklch(36.5% 0.168 302.3);
Tailwind
colors: {
  custom: {
    50: '#885ca9',
    500: '#511785',
    950: '#000000',
  },
}
SCSS
$custom: #511785;
$custom-light: #885ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#511785",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 271.636,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36497,
    "c": 0.16755,
    "h": 302.3
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#511785
secondary
#79B93F
accent
#ED3B8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #511785

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

Preview Lab → · Contrast checker → · Palette generator →

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