#511755#511755

#511755 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.7% C 0.119 H 325.1°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#511755
RGBrgb(81, 23, 85)
HSLhsl(296, 57%, 21%)
HSVhsv(296, 73%, 33%)
CMYKcmyk(4.7%, 72.9%, 0%, 66.7%)
CIE-LABlab(20.12, 35.82, -24.51)
CIE-LCHlch(20.12, 43.40, 325.62°)
OKLaboklab(32.68% 0.0977 -0.0681)
OKLCHoklch(32.68% 0.119 325.1)
XYZxyz(5.3393, 3.0183, 8.8939)
Luminance0.0302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511755 #1B5517
analogous
#321755 #511755 #55173A
triadic
#511755 #555117 #175551
tetradic
#511755 #553217 #1B5517 #173A55
square
#511755 #553217 #1B5517 #173A55
split-complementary
#511755 #3A5517 #175532
monochromatic
#170718 #230A25 #511755 #7F2485 #AD31B5

Accessibility & contrast

On white

13.10
#511755 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#511755 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511755
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511755#FFFFFF#000000##FFFFFF
##5117551.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2C57
Deuteranopia (green-blind)
#233353
Tritanopia (blue-blind)
#532134
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511755;
/* rgb */ color: rgb(81, 23, 85);
/* oklch */ color: oklch(32.7% 0.119 325.1);
Tailwind
colors: {
  custom: {
    50: '#845a85',
    500: '#511755',
    950: '#000000',
  },
}
SCSS
$custom: #511755;
$custom-light: #845a85;
$custom-dark: #000000;
JSON
{
  "hex": "#511755",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 85
  },
  "hsl": {
    "h": 296.129,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3268,
    "c": 0.1191,
    "h": 325.1
  },
  "luminance": 0.03018
}

Semantic roles & 50–950 ramp

primary
#511755
secondary
#418C3C
accent
#E14751
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511755

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

Preview Lab → · Contrast checker → · Palette generator →

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