#511681#511681

#511681 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.164 H 303.8°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#511681
RGBrgb(81, 22, 129)
HSLhsl(273, 71%, 30%)
HSVhsv(273, 83%, 51%)
CMYKcmyk(37.2%, 82.9%, 0%, 49.4%)
CIE-LABlab(23.37, 46.12, -47.90)
CIE-LCHlch(23.37, 66.49, 313.92°)
OKLaboklab(36.05% 0.0914 -0.1366)
OKLCHoklch(36.05% 0.164 303.8)
XYZxyz(7.6418, 3.9081, 21.1164)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511681 #468116
analogous
#1B1681 #511681 #81167C
triadic
#511681 #815116 #168151
tetradic
#511681 #811B16 #468116 #167C81
square
#511681 #811B16 #468116 #167C81
split-complementary
#511681 #7C8116 #16811B
monochromatic
#10041A #300D4D #511681 #721FB5 #9135DD

Accessibility & contrast

On white

11.79
#511681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#511681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511681
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511681#FFFFFF#000000##FFFFFF
##5116811.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00377F
Tritanopia (blue-blind)
#47334C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511681;
/* rgb */ color: rgb(81, 22, 129);
/* oklch */ color: oklch(36.0% 0.164 303.8);
Tailwind
colors: {
  custom: {
    50: '#875ca6',
    500: '#511681',
    950: '#000000',
  },
}
SCSS
$custom: #511681;
$custom-light: #875ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#511681",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 273.084,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36046,
    "c": 0.16441,
    "h": 303.8
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#511681
secondary
#73B63D
accent
#EE3A8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511681

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

Preview Lab → · Contrast checker → · Palette generator →

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