#511052#511052

#511052 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.125 H 327.4°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#511052
RGBrgb(81, 16, 82)
HSLhsl(299, 67%, 19%)
HSVhsv(299, 80%, 32%)
CMYKcmyk(1.2%, 80.5%, 0%, 67.8%)
CIE-LABlab(18.93, 38.06, -24.38)
CIE-LCHlch(18.93, 45.20, 327.36°)
OKLaboklab(31.76% 0.1057 -0.0676)
OKLCHoklch(31.76% 0.125 327.4)
XYZxyz(5.1015, 2.7295, 8.2392)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511052 #115210
analogous
#301052 #511052 #521032
triadic
#511052 #525110 #105251
tetradic
#511052 #523010 #115210 #103252
square
#511052 #523010 #115210 #103252
split-complementary
#511052 #325210 #105230
monochromatic
#19051A #1E061F #511052 #841A85 #B624B8

Accessibility & contrast

On white

13.59
#511052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#511052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511052
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511052#FFFFFF#000000##FFFFFF
##5110521.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022954
Deuteranopia (green-blind)
#213150
Tritanopia (blue-blind)
#541B30
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #511052;
/* rgb */ color: rgb(81, 16, 82);
/* oklch */ color: oklch(31.8% 0.125 327.4);
Tailwind
colors: {
  custom: {
    50: '#855783',
    500: '#511052',
    950: '#000000',
  },
}
SCSS
$custom: #511052;
$custom-light: #855783;
$custom-dark: #000000;
JSON
{
  "hex": "#511052",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 299.091,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31764,
    "c": 0.12546,
    "h": 327.4
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#511052
secondary
#348C32
accent
#EA3E40
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #511052

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

Preview Lab → · Contrast checker → · Palette generator →

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