#511552#511552

#511552 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.3% C 0.119 H 327.2°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#511552
RGBrgb(81, 21, 82)
HSLhsl(299, 59%, 20%)
HSVhsv(299, 74%, 32%)
CMYKcmyk(1.2%, 74.4%, 0%, 67.8%)
CIE-LABlab(19.62, 36.09, -23.28)
CIE-LCHlch(19.62, 42.95, 327.18°)
OKLaboklab(32.26% 0.1001 -0.0645)
OKLCHoklch(32.26% 0.119 327.2)
XYZxyz(5.1844, 2.8952, 8.2668)
Luminance0.0290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511552 #165215
analogous
#321552 #511552 #521535
triadic
#511552 #525115 #155251
tetradic
#511552 #523215 #165215 #153552
square
#511552 #523215 #165215 #153552
split-complementary
#511552 #355215 #155232
monochromatic
#180618 #210921 #511552 #812183 #B12EB3

Accessibility & contrast

On white

13.30
#511552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#511552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511552
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511552#FFFFFF#000000##FFFFFF
##5115521.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2B54
Deuteranopia (green-blind)
#243250
Tritanopia (blue-blind)
#541E31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511552;
/* rgb */ color: rgb(81, 21, 82);
/* oklch */ color: oklch(32.3% 0.119 327.2);
Tailwind
colors: {
  custom: {
    50: '#845983',
    500: '#511552',
    950: '#000000',
  },
}
SCSS
$custom: #511552;
$custom-light: #845983;
$custom-dark: #000000;
JSON
{
  "hex": "#511552",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 299.016,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32261,
    "c": 0.11909,
    "h": 327.2
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#511552
secondary
#3A8A39
accent
#E24548
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511552

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

Preview Lab → · Contrast checker → · Palette generator →

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