#511F61#511F61

#511F61 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.5% C 0.119 H 317.0°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#511F61
RGBrgb(81, 31, 97)
HSLhsl(285, 52%, 25%)
HSVhsv(285, 68%, 38%)
CMYKcmyk(16.5%, 68%, 0%, 62%)
CIE-LABlab(22.28, 34.55, -29.04)
CIE-LCHlch(22.28, 45.14, 319.95°)
OKLaboklab(34.49% 0.0874 -0.0814)
OKLCHoklch(34.49% 0.119 317)
XYZxyz(6.0407, 3.5926, 11.6822)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F61 #2F611F
analogous
#301F61 #511F61 #611F50
triadic
#511F61 #61511F #1F6151
tetradic
#511F61 #61301F #2F611F #1F5061
square
#511F61 #61301F #2F611F #1F5061
split-complementary
#511F61 #50611F #1F6130
monochromatic
#130717 #2A1033 #511F61 #782E8F #9E3DBE

Accessibility & contrast

On white

12.22
#511F61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511F61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F61
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F61#FFFFFF#000000##FFFFFF
##511F611.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083263
Deuteranopia (green-blind)
#20375F
Tritanopia (blue-blind)
#502B3D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511f61;
/* rgb */ color: rgb(81, 31, 97);
/* oklch */ color: oklch(34.5% 0.119 317.0);
Tailwind
colors: {
  custom: {
    50: '#845e8e',
    500: '#511f61',
    950: '#000000',
  },
}
SCSS
$custom: #511f61;
$custom-light: #845e8e;
$custom-dark: #000000;
JSON
{
  "hex": "#511f61",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 97
  },
  "hsl": {
    "h": 285.455,
    "s": 51.563,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34488,
    "c": 0.11938,
    "h": 317
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#511F61
secondary
#599646
accent
#DB4D6F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #511F61

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

Preview Lab → · Contrast checker → · Palette generator →

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