#511F57#511F57

#511F57 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.8% C 0.109 H 323.3°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#511F57
RGBrgb(81, 31, 87)
HSLhsl(294, 47%, 23%)
HSVhsv(294, 64%, 34%)
CMYKcmyk(6.9%, 64.4%, 0%, 65.9%)
CIE-LABlab(21.64, 32.34, -23.42)
CIE-LCHlch(21.64, 39.93, 324.08°)
OKLaboklab(33.83% 0.0871 -0.065)
OKLCHoklch(33.83% 0.109 323.3)
XYZxyz(5.6035, 3.4177, 9.3795)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F57 #25571F
analogous
#351F57 #511F57 #571F41
triadic
#511F57 #57511F #1F5751
tetradic
#511F57 #57351F #25571F #1F4157
square
#511F57 #57351F #25571F #1F4157
split-complementary
#511F57 #41571F #1F5735
monochromatic
#150817 #270F2A #511F57 #7B2F84 #A53FB1

Accessibility & contrast

On white

12.47
#511F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F57
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F57#FFFFFF#000000##FFFFFF
##511F571.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153059
Deuteranopia (green-blind)
#273656
Tritanopia (blue-blind)
#522737
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511f57;
/* rgb */ color: rgb(81, 31, 87);
/* oklch */ color: oklch(33.8% 0.109 323.3);
Tailwind
colors: {
  custom: {
    50: '#845e86',
    500: '#511f57',
    950: '#000000',
  },
}
SCSS
$custom: #511f57;
$custom-light: #845e86;
$custom-dark: #000000;
JSON
{
  "hex": "#511f57",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 293.571,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33826,
    "c": 0.10866,
    "h": 323.3
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#511F57
secondary
#4E8C46
accent
#D7515F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511F57

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

Preview Lab → · Contrast checker → · Palette generator →

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