#511081#511081

#511081 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.170 H 304.4°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#511081
RGBrgb(81, 16, 129)
HSLhsl(275, 78%, 28%)
HSVhsv(275, 88%, 51%)
CMYKcmyk(37.2%, 87.6%, 0%, 49.4%)
CIE-LABlab(22.67, 48.16, -49.03)
CIE-LCHlch(22.67, 68.72, 314.48°)
OKLaboklab(35.57% 0.0958 -0.1399)
OKLCHoklch(35.57% 0.17 304.4)
XYZxyz(7.5402, 3.7049, 21.0825)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511081 #408110
analogous
#181081 #511081 #811078
triadic
#511081 #815110 #108151
tetradic
#511081 #811810 #408110 #107881
square
#511081 #811810 #408110 #107881
split-complementary
#511081 #788110 #108118
monochromatic
#11031B #2F094B #511081 #7317B7 #9427E4

Accessibility & contrast

On white

12.06
#511081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511081
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511081#FFFFFF#000000##FFFFFF
##5110811.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#47314B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511081;
/* rgb */ color: rgb(81, 16, 129);
/* oklch */ color: oklch(35.6% 0.170 304.4);
Tailwind
colors: {
  custom: {
    50: '#8859a6',
    500: '#511081',
    950: '#000000',
  },
}
SCSS
$custom: #511081;
$custom-light: #8859a6;
$custom-dark: #000000;
JSON
{
  "hex": "#511081",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 129
  },
  "hsl": {
    "h": 274.513,
    "s": 77.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35565,
    "c": 0.16956,
    "h": 304.4
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#511081
secondary
#6DB736
accent
#F43385
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511081

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

Preview Lab → · Contrast checker → · Palette generator →

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