#511F4E#511F4E

#511F4E is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.3% C 0.099 H 329.9°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#511F4E
RGBrgb(81, 31, 78)
HSLhsl(304, 45%, 22%)
HSVhsv(304, 62%, 32%)
CMYKcmyk(0%, 61.7%, 3.7%, 68.2%)
CIE-LABlab(21.13, 30.47, -18.19)
CIE-LCHlch(21.13, 35.49, 329.16°)
OKLaboklab(33.28% 0.0861 -0.0499)
OKLCHoklch(33.28% 0.099 329.9)
XYZxyz(5.2584, 3.2797, 7.5623)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F4E #1F5122
analogous
#3B1F51 #511F4E #511F35
triadic
#511F4E #4E511F #1F4E51
tetradic
#511F4E #513B1F #1F5122 #1F3551
square
#511F4E #513B1F #1F5122 #1F3551
split-complementary
#511F4E #35511F #1F513B
monochromatic
#160815 #250E23 #511F4E #7D3079 #AA41A3

Accessibility & contrast

On white

12.68
#511F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F4E
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F4E#FFFFFF#000000##FFFFFF
##511F4E1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2E4F
Deuteranopia (green-blind)
#2B354D
Tritanopia (blue-blind)
#542433
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511f4e;
/* rgb */ color: rgb(81, 31, 78);
/* oklch */ color: oklch(33.3% 0.099 329.9);
Tailwind
colors: {
  custom: {
    50: '#845e7f',
    500: '#511f4e',
    950: '#000000',
  },
}
SCSS
$custom: #511f4e;
$custom-light: #845e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#511f4e",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 303.6,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33284,
    "c": 0.09948,
    "h": 329.9
  },
  "luminance": 0.03279
}

Semantic roles & 50–950 ramp

primary
#511F4E
secondary
#46864A
accent
#D45B53
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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