#511B6D#511B6D

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

Color values

HEX#511B6D
RGBrgb(81, 27, 109)
HSLhsl(280, 60%, 27%)
HSVhsv(280, 75%, 43%)
CMYKcmyk(25.7%, 75.2%, 0%, 57.3%)
CIE-LABlab(22.43, 39.27, -36.62)
CIE-LCHlch(22.43, 53.70, 317.00°)
OKLaboklab(34.87% 0.0913 -0.1035)
OKLCHoklch(34.87% 0.138 311.4)
XYZxyz(6.5451, 3.6375, 14.8224)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B6D #376D1B
analogous
#281B6D #511B6D #6D1B60
triadic
#511B6D #6D511B #1B6D51
tetradic
#511B6D #6D281B #376D1B #1B606D
square
#511B6D #6D281B #376D1B #1B606D
split-complementary
#511B6D #606D1B #1B6D28
monochromatic
#120619 #2D0F3C #511B6D #75279E #9935CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511B6D#FFFFFF#000000##FFFFFF
##511B6D1.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)
#00336F
Deuteranopia (green-blind)
#0F376B
Tritanopia (blue-blind)
#4D2D42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511b6d;
/* rgb */ color: rgb(81, 27, 109);
/* oklch */ color: oklch(34.9% 0.138 311.4);
Tailwind
colors: {
  custom: {
    50: '#855d97',
    500: '#511b6d',
    950: '#000000',
  },
}
SCSS
$custom: #511b6d;
$custom-light: #855d97;
$custom-dark: #000000;
JSON
{
  "hex": "#511b6d",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 279.512,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34874,
    "c": 0.13803,
    "h": 311.4
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#511B6D
secondary
#63A242
accent
#E3447B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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