#511F51#511F51

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

Color values

HEX#511F51
RGBrgb(81, 31, 81)
HSLhsl(300, 45%, 22%)
HSVhsv(300, 62%, 32%)
CMYKcmyk(0%, 61.7%, 0%, 68.2%)
CIE-LABlab(21.30, 31.08, -19.96)
CIE-LCHlch(21.30, 36.93, 327.30°)
OKLaboklab(33.46% 0.0865 -0.055)
OKLCHoklch(33.46% 0.102 327.6)
XYZxyz(5.3684, 3.3237, 8.1418)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F51 #1F511F
analogous
#381F51 #511F51 #511F38
triadic
#511F51 #51511F #1F5151
tetradic
#511F51 #51381F #1F511F #1F3851
square
#511F51 #51381F #1F511F #1F3851
split-complementary
#511F51 #38511F #1F5138
monochromatic
#160816 #250E25 #511F51 #7D307D #AA41AA

Accessibility & contrast

On white

12.62
#511F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F51
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F51#FFFFFF#000000##FFFFFF
##511F511.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2F53
Deuteranopia (green-blind)
#2A3550
Tritanopia (blue-blind)
#532534
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511f51;
/* rgb */ color: rgb(81, 31, 81);
/* oklch */ color: oklch(33.5% 0.102 327.6);
Tailwind
colors: {
  custom: {
    50: '#845e82',
    500: '#511f51',
    950: '#000000',
  },
}
SCSS
$custom: #511f51;
$custom-light: #845e82;
$custom-dark: #000000;
JSON
{
  "hex": "#511f51",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 81
  },
  "hsl": {
    "h": 300,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33459,
    "c": 0.10247,
    "h": 327.6
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

primary
#511F51
secondary
#468646
accent
#D45353
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511F51

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

Preview Lab → · Contrast checker → · Palette generator →

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