#511F54#511F54

#511F54 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.6% C 0.106 H 325.4°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#511F54
RGBrgb(81, 31, 84)
HSLhsl(297, 46%, 23%)
HSVhsv(297, 63%, 33%)
CMYKcmyk(3.6%, 63.1%, 0%, 67.1%)
CIE-LABlab(21.47, 31.70, -21.70)
CIE-LCHlch(21.47, 38.42, 325.61°)
OKLaboklab(33.64% 0.0868 -0.06)
OKLCHoklch(33.64% 0.106 325.4)
XYZxyz(5.4834, 3.3697, 8.7474)
Luminance0.0337 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F54 #22541F
analogous
#371F54 #511F54 #541F3C
triadic
#511F54 #54511F #1F5451
tetradic
#511F54 #54371F #22541F #1F3C54
square
#511F54 #54371F #22541F #1F3C54
split-complementary
#511F54 #3C541F #1F5437
monochromatic
#160816 #260F27 #511F54 #7C2F81 #A740AD

Accessibility & contrast

On white

12.55
#511F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F54
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F54#FFFFFF#000000##FFFFFF
##511F541.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173056
Deuteranopia (green-blind)
#293653
Tritanopia (blue-blind)
#532636
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511f54;
/* rgb */ color: rgb(81, 31, 84);
/* oklch */ color: oklch(33.6% 0.106 325.4);
Tailwind
colors: {
  custom: {
    50: '#845e84',
    500: '#511f54',
    950: '#000000',
  },
}
SCSS
$custom: #511f54;
$custom-light: #845e84;
$custom-dark: #000000;
JSON
{
  "hex": "#511f54",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 84
  },
  "hsl": {
    "h": 296.604,
    "s": 46.087,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33639,
    "c": 0.10554,
    "h": 325.4
  },
  "luminance": 0.03369
}

Semantic roles & 50–950 ramp

primary
#511F54
secondary
#4A8946
accent
#D6525A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511F54

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

Preview Lab → · Contrast checker → · Palette generator →

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