#511F50#511F50

#511F50 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.4% C 0.101 H 328.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#511F50
RGBrgb(81, 31, 80)
HSLhsl(301, 45%, 22%)
HSVhsv(301, 62%, 32%)
CMYKcmyk(0%, 61.7%, 1.2%, 68.2%)
CIE-LABlab(21.24, 30.88, -19.37)
CIE-LCHlch(21.24, 36.45, 327.90°)
OKLaboklab(33.4% 0.0864 -0.0533)
OKLCHoklch(33.4% 0.101 328.3)
XYZxyz(5.3312, 3.3088, 7.9457)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F50 #1F5120
analogous
#391F51 #511F50 #511F37
triadic
#511F50 #50511F #1F5051
tetradic
#511F50 #51391F #1F5120 #1F3751
square
#511F50 #51391F #1F5120 #1F3751
split-complementary
#511F50 #37511F #1F5139
monochromatic
#160816 #250E24 #511F50 #7D307C #AA41A7

Accessibility & contrast

On white

12.64
#511F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F50
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F50#FFFFFF#000000##FFFFFF
##511F501.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2F52
Deuteranopia (green-blind)
#2B354F
Tritanopia (blue-blind)
#542534
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511f50;
/* rgb */ color: rgb(81, 31, 80);
/* oklch */ color: oklch(33.4% 0.101 328.3);
Tailwind
colors: {
  custom: {
    50: '#845e81',
    500: '#511f50',
    950: '#000000',
  },
}
SCSS
$custom: #511f50;
$custom-light: #845e81;
$custom-dark: #000000;
JSON
{
  "hex": "#511f50",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 80
  },
  "hsl": {
    "h": 301.2,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.334,
    "c": 0.10147,
    "h": 328.3
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#511F50
secondary
#468647
accent
#D45653
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511F50

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

Preview Lab → · Contrast checker → · Palette generator →

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