#511F6F#511F6F

#511F6F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.135 H 309.9°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#511F6F
RGBrgb(81, 31, 111)
HSLhsl(278, 56%, 28%)
HSVhsv(278, 72%, 44%)
CMYKcmyk(27%, 72.1%, 0%, 56.5%)
CIE-LABlab(23.26, 37.85, -36.58)
CIE-LCHlch(23.26, 52.64, 315.98°)
OKLaboklab(35.51% 0.0864 -0.1034)
OKLCHoklch(35.51% 0.135 309.9)
XYZxyz(6.7520, 3.8771, 15.4285)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F6F #3D6F1F
analogous
#291F6F #511F6F #6F1F65
triadic
#511F6F #6F511F #1F6F51
tetradic
#511F6F #6F291F #3D6F1F #1F656F
square
#511F6F #6F291F #3D6F1F #1F656F
split-complementary
#511F6F #656F1F #1F6F29
monochromatic
#110718 #2E123F #511F6F #742C9F #953FC9

Accessibility & contrast

On white

11.83
#511F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#511F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F6F
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F6F#FFFFFF#000000##FFFFFF
##511F6F1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#11386D
Tritanopia (blue-blind)
#4D3044
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511f6f;
/* rgb */ color: rgb(81, 31, 111);
/* oklch */ color: oklch(35.5% 0.135 309.9);
Tailwind
colors: {
  custom: {
    50: '#855f99',
    500: '#511f6f',
    950: '#000000',
  },
}
SCSS
$custom: #511f6f;
$custom-light: #855f99;
$custom-dark: #000000;
JSON
{
  "hex": "#511f6f",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 277.5,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35511,
    "c": 0.1348,
    "h": 309.9
  },
  "luminance": 0.03877
}

Semantic roles & 50–950 ramp

primary
#511F6F
secondary
#69A347
accent
#E04881
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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