#511A6F#511A6F

#511A6F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.141 H 310.6°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#511A6F
RGBrgb(81, 26, 111)
HSLhsl(279, 62%, 27%)
HSVhsv(279, 77%, 44%)
CMYKcmyk(27%, 76.6%, 0%, 56.5%)
CIE-LABlab(22.43, 40.19, -37.92)
CIE-LCHlch(22.43, 55.26, 316.67°)
OKLaboklab(34.92% 0.0921 -0.1074)
OKLCHoklch(34.92% 0.141 310.6)
XYZxyz(6.6314, 3.6360, 15.3883)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A6F #386F1A
analogous
#271A6F #511A6F #6F1A63
triadic
#511A6F #6F511A #1A6F51
tetradic
#511A6F #6F271A #386F1A #1A636F
square
#511A6F #6F271A #386F1A #1A636F
split-complementary
#511A6F #636F1A #1A6F27
monochromatic
#120619 #2D0E3D #511A6F #7526A1 #9934CF

Accessibility & contrast

On white

12.16
#511A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A6F
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A6F#FFFFFF#000000##FFFFFF
##511A6F1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#09366D
Tritanopia (blue-blind)
#4D2D43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511a6f;
/* rgb */ color: rgb(81, 26, 111);
/* oklch */ color: oklch(34.9% 0.141 310.6);
Tailwind
colors: {
  custom: {
    50: '#855c99',
    500: '#511a6f',
    950: '#000000',
  },
}
SCSS
$custom: #511a6f;
$custom-light: #855c99;
$custom-dark: #000000;
JSON
{
  "hex": "#511a6f",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 278.824,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34919,
    "c": 0.14142,
    "h": 310.6
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

primary
#511A6F
secondary
#64A441
accent
#E5437C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511A6F

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

Preview Lab → · Contrast checker → · Palette generator →

#511A6F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva