#511D61#511D61

#511D61 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.2% C 0.122 H 317.3°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#511D61
RGBrgb(81, 29, 97)
HSLhsl(286, 54%, 25%)
HSVhsv(286, 70%, 38%)
CMYKcmyk(16.5%, 70.1%, 0%, 62%)
CIE-LABlab(21.91, 35.56, -29.62)
CIE-LCHlch(21.91, 46.28, 320.20°)
OKLaboklab(34.23% 0.09 -0.083)
OKLCHoklch(34.23% 0.122 317.3)
XYZxyz(5.9901, 3.4914, 11.6653)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D61 #2D611D
analogous
#2F1D61 #511D61 #611D4F
triadic
#511D61 #61511D #1D6151
tetradic
#511D61 #612F1D #2D611D #1D4F61
square
#511D61 #612F1D #2D611D #1D4F61
split-complementary
#511D61 #4F611D #1D612F
monochromatic
#140718 #2A0F32 #511D61 #782B90 #A039BF

Accessibility & contrast

On white

12.37
#511D61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511D61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D61
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D61#FFFFFF#000000##FFFFFF
##511D611.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033163
Deuteranopia (green-blind)
#1F365F
Tritanopia (blue-blind)
#50293C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511d61;
/* rgb */ color: rgb(81, 29, 97);
/* oklch */ color: oklch(34.2% 0.122 317.3);
Tailwind
colors: {
  custom: {
    50: '#845d8e',
    500: '#511d61',
    950: '#000000',
  },
}
SCSS
$custom: #511d61;
$custom-light: #845d8e;
$custom-dark: #000000;
JSON
{
  "hex": "#511d61",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 97
  },
  "hsl": {
    "h": 285.882,
    "s": 53.968,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34226,
    "c": 0.12244,
    "h": 317.3
  },
  "luminance": 0.03491
}

Semantic roles & 50–950 ramp

primary
#511D61
secondary
#579644
accent
#DD4A6D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511D61

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

Preview Lab → · Contrast checker → · Palette generator →

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