#511A6E#511A6E

#511A6E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.140 H 311.1°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#511A6E
RGBrgb(81, 26, 110)
HSLhsl(279, 62%, 27%)
HSVhsv(279, 76%, 43%)
CMYKcmyk(26.4%, 76.4%, 0%, 56.9%)
CIE-LABlab(22.35, 39.96, -37.40)
CIE-LCHlch(22.35, 54.73, 316.90°)
OKLaboklab(34.84% 0.0922 -0.1058)
OKLCHoklch(34.84% 0.14 311.1)
XYZxyz(6.5767, 3.6141, 15.1000)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A6E #376E1A
analogous
#271A6E #511A6E #6E1A61
triadic
#511A6E #6E511A #1A6E51
tetradic
#511A6E #6E271A #376E1A #1A616E
square
#511A6E #6E271A #376E1A #1A616E
split-complementary
#511A6E #616E1A #1A6E27
monochromatic
#120619 #2D0E3D #511A6E #7526A0 #9934CF

Accessibility & contrast

On white

12.19
#511A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A6E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A6E#FFFFFF#000000##FFFFFF
##511A6E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#0C366C
Tritanopia (blue-blind)
#4D2D42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511a6e;
/* rgb */ color: rgb(81, 26, 110);
/* oklch */ color: oklch(34.8% 0.140 311.1);
Tailwind
colors: {
  custom: {
    50: '#855c98',
    500: '#511a6e',
    950: '#000000',
  },
}
SCSS
$custom: #511a6e;
$custom-light: #855c98;
$custom-dark: #000000;
JSON
{
  "hex": "#511a6e",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 279.286,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3484,
    "c": 0.14037,
    "h": 311.1
  },
  "luminance": 0.03614
}

Semantic roles & 50–950 ramp

primary
#511A6E
secondary
#63A341
accent
#E5437B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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