#511757#511757

#511757 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.121 H 323.9°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#511757
RGBrgb(81, 23, 87)
HSLhsl(294, 58%, 22%)
HSVhsv(294, 74%, 34%)
CMYKcmyk(6.9%, 73.6%, 0%, 65.9%)
CIE-LABlab(20.25, 36.22, -25.64)
CIE-LCHlch(20.25, 44.38, 324.70°)
OKLaboklab(32.81% 0.0977 -0.0714)
OKLCHoklch(32.81% 0.121 323.9)
XYZxyz(5.4199, 3.0506, 9.3183)
Luminance0.0305 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511757 #1D5717
analogous
#311757 #511757 #57173D
triadic
#511757 #575117 #175751
tetradic
#511757 #573117 #1D5717 #173D57
square
#511757 #573117 #1D5717 #173D57
split-complementary
#511757 #3D5717 #175731
monochromatic
#170618 #240A27 #511757 #7E2487 #AB31B8

Accessibility & contrast

On white

13.04
#511757 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#511757 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511757
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511757#FFFFFF#000000##FFFFFF
##5117571.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072C59
Deuteranopia (green-blind)
#223355
Tritanopia (blue-blind)
#532135
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511757;
/* rgb */ color: rgb(81, 23, 87);
/* oklch */ color: oklch(32.8% 0.121 323.9);
Tailwind
colors: {
  custom: {
    50: '#845a87',
    500: '#511757',
    950: '#000000',
  },
}
SCSS
$custom: #511757;
$custom-light: #845a87;
$custom-dark: #000000;
JSON
{
  "hex": "#511757",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 87
  },
  "hsl": {
    "h": 294.375,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32814,
    "c": 0.12103,
    "h": 323.9
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#511757
secondary
#448E3C
accent
#E14655
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511757

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

Preview Lab → · Contrast checker → · Palette generator →

#511757 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva