#511F5E#511F5E

#511F5E is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.3% C 0.116 H 318.8°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#511F5E
RGBrgb(81, 31, 94)
HSLhsl(288, 50%, 25%)
HSVhsv(288, 67%, 37%)
CMYKcmyk(13.8%, 67%, 0%, 63.1%)
CIE-LABlab(22.08, 33.87, -27.38)
CIE-LCHlch(22.08, 43.55, 321.05°)
OKLaboklab(34.28% 0.0874 -0.0765)
OKLCHoklch(34.28% 0.116 318.8)
XYZxyz(5.9034, 3.5377, 10.9594)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F5E #2C5E1F
analogous
#321F5E #511F5E #5E1F4C
triadic
#511F5E #5E511F #1F5E51
tetradic
#511F5E #5E321F #2C5E1F #1F4C5E
square
#511F5E #5E321F #2C5E1F #1F4C5E
split-complementary
#511F5E #4C5E1F #1F5E32
monochromatic
#140817 #291030 #511F5E #792E8C #A03DBA

Accessibility & contrast

On white

12.30
#511F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F5E
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F5E#FFFFFF#000000##FFFFFF
##511F5E1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3160
Deuteranopia (green-blind)
#23375C
Tritanopia (blue-blind)
#512A3B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511f5e;
/* rgb */ color: rgb(81, 31, 94);
/* oklch */ color: oklch(34.3% 0.116 318.8);
Tailwind
colors: {
  custom: {
    50: '#845e8c',
    500: '#511f5e',
    950: '#000000',
  },
}
SCSS
$custom: #511f5e;
$custom-light: #845e8c;
$custom-dark: #000000;
JSON
{
  "hex": "#511f5e",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 94
  },
  "hsl": {
    "h": 287.619,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34283,
    "c": 0.11613,
    "h": 318.8
  },
  "luminance": 0.03537
}

Semantic roles & 50–950 ramp

primary
#511F5E
secondary
#569346
accent
#DA4E6B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #511F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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