#511F5A#511F5A

#511F5A is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.0% C 0.112 H 321.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#511F5A
RGBrgb(81, 31, 90)
HSLhsl(291, 49%, 24%)
HSVhsv(291, 66%, 35%)
CMYKcmyk(10%, 65.6%, 0%, 64.7%)
CIE-LABlab(21.83, 32.99, -25.13)
CIE-LCHlch(21.83, 41.47, 322.70°)
OKLaboklab(34.02% 0.0872 -0.0699)
OKLCHoklch(34.02% 0.112 321.3)
XYZxyz(5.7286, 3.4678, 10.0385)
Luminance0.0347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F5A #285A1F
analogous
#331F5A #511F5A #5A1F45
triadic
#511F5A #5A511F #1F5A51
tetradic
#511F5A #5A331F #285A1F #1F455A
square
#511F5A #5A331F #285A1F #1F455A
split-complementary
#511F5A #455A1F #1F5A33
monochromatic
#140817 #280F2C #511F5A #7A2F88 #A33EB5

Accessibility & contrast

On white

12.40
#511F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#511F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F5A
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F5A#FFFFFF#000000##FFFFFF
##511F5A1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12315C
Deuteranopia (green-blind)
#253658
Tritanopia (blue-blind)
#522839
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511f5a;
/* rgb */ color: rgb(81, 31, 90);
/* oklch */ color: oklch(34.0% 0.112 321.3);
Tailwind
colors: {
  custom: {
    50: '#845e89',
    500: '#511f5a',
    950: '#000000',
  },
}
SCSS
$custom: #511f5a;
$custom-light: #845e89;
$custom-dark: #000000;
JSON
{
  "hex": "#511f5a",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 90
  },
  "hsl": {
    "h": 290.847,
    "s": 48.76,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34018,
    "c": 0.11183,
    "h": 321.3
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#511F5A
secondary
#518F46
accent
#D84F64
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #511F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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