#511F6D#511F6D

#511F6D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.133 H 310.8°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#511F6D
RGBrgb(81, 31, 109)
HSLhsl(278, 56%, 27%)
HSVhsv(278, 72%, 43%)
CMYKcmyk(25.7%, 71.6%, 0%, 57.3%)
CIE-LABlab(23.11, 37.37, -35.52)
CIE-LCHlch(23.11, 51.56, 316.45°)
OKLaboklab(35.36% 0.0866 -0.1003)
OKLCHoklch(35.36% 0.133 310.8)
XYZxyz(6.6431, 3.8336, 14.8550)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F6D #3B6D1F
analogous
#2A1F6D #511F6D #6D1F62
triadic
#511F6D #6D511F #1F6D51
tetradic
#511F6D #6D2A1F #3B6D1F #1F626D
square
#511F6D #6D2A1F #3B6D1F #1F626D
split-complementary
#511F6D #626D1F #1F6D2A
monochromatic
#120718 #2E113D #511F6D #742D9D #973EC8

Accessibility & contrast

On white

11.89
#511F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#511F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F6D
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F6D#FFFFFF#000000##FFFFFF
##511F6D1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356F
Deuteranopia (green-blind)
#14386B
Tritanopia (blue-blind)
#4D2F43
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511f6d;
/* rgb */ color: rgb(81, 31, 109);
/* oklch */ color: oklch(35.4% 0.133 310.8);
Tailwind
colors: {
  custom: {
    50: '#855f97',
    500: '#511f6d',
    950: '#000000',
  },
}
SCSS
$custom: #511f6d;
$custom-light: #855f97;
$custom-dark: #000000;
JSON
{
  "hex": "#511f6d",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 109
  },
  "hsl": {
    "h": 278.462,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35358,
    "c": 0.13258,
    "h": 310.8
  },
  "luminance": 0.03833
}

Semantic roles & 50–950 ramp

primary
#511F6D
secondary
#67A147
accent
#DF497F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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