#511F52#511F52

#511F52 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.5% C 0.103 H 326.8°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#511F52
RGBrgb(81, 31, 82)
HSLhsl(299, 45%, 22%)
HSVhsv(299, 62%, 32%)
CMYKcmyk(1.2%, 62.2%, 0%, 67.8%)
CIE-LABlab(21.35, 31.29, -20.54)
CIE-LCHlch(21.35, 37.43, 326.72°)
OKLaboklab(33.52% 0.0866 -0.0566)
OKLCHoklch(33.52% 0.103 326.8)
XYZxyz(5.4062, 3.3388, 8.3407)
Luminance0.0334 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F52 #20521F
analogous
#381F52 #511F52 #521F39
triadic
#511F52 #52511F #1F5251
tetradic
#511F52 #52381F #20521F #1F3952
square
#511F52 #52381F #20521F #1F3952
split-complementary
#511F52 #39521F #1F5238
monochromatic
#160816 #250E26 #511F52 #7D307E #A941AB

Accessibility & contrast

On white

12.59
#511F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F52
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F52#FFFFFF#000000##FFFFFF
##511F521.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192F54
Deuteranopia (green-blind)
#2A3651
Tritanopia (blue-blind)
#532535
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511f52;
/* rgb */ color: rgb(81, 31, 82);
/* oklch */ color: oklch(33.5% 0.103 326.8);
Tailwind
colors: {
  custom: {
    50: '#845e83',
    500: '#511f52',
    950: '#000000',
  },
}
SCSS
$custom: #511f52;
$custom-light: #845e83;
$custom-dark: #000000;
JSON
{
  "hex": "#511f52",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 298.824,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33518,
    "c": 0.10349,
    "h": 326.8
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#511F52
secondary
#478746
accent
#D55356
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511F52

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

Preview Lab → · Contrast checker → · Palette generator →

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