#511E60#511E60

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

Color values

HEX#511E60
RGBrgb(81, 30, 96)
HSLhsl(286, 52%, 25%)
HSVhsv(286, 69%, 38%)
CMYKcmyk(15.6%, 68.7%, 0%, 62.4%)
CIE-LABlab(22.03, 34.83, -28.78)
CIE-LCHlch(22.03, 45.19, 320.43°)
OKLaboklab(34.29% 0.0887 -0.0806)
OKLCHoklch(34.29% 0.12 317.7)
XYZxyz(5.9686, 3.5227, 11.4296)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E60 #2D601E
analogous
#301E60 #511E60 #601E4E
triadic
#511E60 #60511E #1E6051
tetradic
#511E60 #60301E #2D601E #1E4E60
square
#511E60 #60301E #2D601E #1E4E60
split-complementary
#511E60 #4E601E #1E6030
monochromatic
#140717 #2A0F31 #511E60 #782D8F #A03BBD

Accessibility & contrast

On white

12.32
#511E60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E60
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E60#FFFFFF#000000##FFFFFF
##511E601.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073162
Deuteranopia (green-blind)
#20365E
Tritanopia (blue-blind)
#512A3C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511e60;
/* rgb */ color: rgb(81, 30, 96);
/* oklch */ color: oklch(34.3% 0.120 317.7);
Tailwind
colors: {
  custom: {
    50: '#845e8d',
    500: '#511e60',
    950: '#000000',
  },
}
SCSS
$custom: #511e60;
$custom-light: #845e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#511e60",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 96
  },
  "hsl": {
    "h": 286.364,
    "s": 52.381,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34286,
    "c": 0.11985,
    "h": 317.7
  },
  "luminance": 0.03522
}

Semantic roles & 50–950 ramp

primary
#511E60
secondary
#579545
accent
#DC4C6D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511E60

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

Preview Lab → · Contrast checker → · Palette generator →

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