#511D6F#511D6F

#511D6F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.138 H 310.2°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#511D6F
RGBrgb(81, 29, 111)
HSLhsl(278, 59%, 27%)
HSVhsv(278, 74%, 44%)
CMYKcmyk(27%, 73.9%, 0%, 56.5%)
CIE-LABlab(22.92, 38.82, -37.13)
CIE-LCHlch(22.92, 53.72, 316.27°)
OKLaboklab(35.27% 0.0887 -0.1051)
OKLCHoklch(35.27% 0.138 310.2)
XYZxyz(6.7014, 3.7759, 15.4116)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D6F #3B6F1D
analogous
#281D6F #511D6F #6F1D64
triadic
#511D6F #6F511D #1D6F51
tetradic
#511D6F #6F281D #3B6F1D #1D646F
square
#511D6F #6F281D #3B6F1D #1D646F
split-complementary
#511D6F #646F1D #1D6F28
monochromatic
#120618 #2E103E #511D6F #742AA0 #973BCC

Accessibility & contrast

On white

11.96
#511D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#511D6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D6F
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D6F#FFFFFF#000000##FFFFFF
##511D6F1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#0E376D
Tritanopia (blue-blind)
#4D2F44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511d6f;
/* rgb */ color: rgb(81, 29, 111);
/* oklch */ color: oklch(35.3% 0.138 310.2);
Tailwind
colors: {
  custom: {
    50: '#855e99',
    500: '#511d6f',
    950: '#000000',
  },
}
SCSS
$custom: #511d6f;
$custom-light: #855e99;
$custom-dark: #000000;
JSON
{
  "hex": "#511d6f",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 111
  },
  "hsl": {
    "h": 278.049,
    "s": 58.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35265,
    "c": 0.13753,
    "h": 310.2
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#511D6F
secondary
#67A344
accent
#E2467F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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