#511750#511750

#511750 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.4% C 0.114 H 328.5°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#511750
RGBrgb(81, 23, 80)
HSLhsl(301, 56%, 20%)
HSVhsv(301, 72%, 32%)
CMYKcmyk(0%, 71.6%, 1.2%, 68.2%)
CIE-LABlab(19.81, 34.82, -21.62)
CIE-LCHlch(19.81, 40.99, 328.16°)
OKLaboklab(32.36% 0.0976 -0.0597)
OKLCHoklch(32.36% 0.114 328.5)
XYZxyz(5.1476, 2.9417, 7.8845)
Luminance0.0294 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511750 #175118
analogous
#351751 #511750 #511733
triadic
#511750 #505117 #175051
tetradic
#511750 #513517 #175118 #173351
square
#511750 #513517 #175118 #173351
split-complementary
#511750 #335117 #175135
monochromatic
#180718 #210921 #511750 #81257F #B032AE

Accessibility & contrast

On white

13.22
#511750 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#511750 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511750
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511750#FFFFFF#000000##FFFFFF
##5117501.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102B52
Deuteranopia (green-blind)
#26334E
Tritanopia (blue-blind)
#541F31
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511750;
/* rgb */ color: rgb(81, 23, 80);
/* oklch */ color: oklch(32.4% 0.114 328.5);
Tailwind
colors: {
  custom: {
    50: '#845a81',
    500: '#511750',
    950: '#000000',
  },
}
SCSS
$custom: #511750;
$custom-light: #845a81;
$custom-dark: #000000;
JSON
{
  "hex": "#511750",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 80
  },
  "hsl": {
    "h": 301.034,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32358,
    "c": 0.11438,
    "h": 328.5
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#511750
secondary
#3C883D
accent
#DF4B49
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511750

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

Preview Lab → · Contrast checker → · Palette generator →

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