#511152#511152

#511152 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.124 H 327.4°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#511152
RGBrgb(81, 17, 82)
HSLhsl(299, 66%, 19%)
HSVhsv(299, 79%, 32%)
CMYKcmyk(1.2%, 79.3%, 0%, 67.8%)
CIE-LABlab(19.05, 37.69, -24.17)
CIE-LCHlch(19.05, 44.78, 327.33°)
OKLaboklab(31.86% 0.1046 -0.067)
OKLCHoklch(31.86% 0.124 327.4)
XYZxyz(5.1167, 2.7598, 8.2442)
Luminance0.0276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511152 #125211
analogous
#311152 #511152 #521133
triadic
#511152 #525111 #115251
tetradic
#511152 #523111 #125211 #113352
square
#511152 #523111 #125211 #113352
split-complementary
#511152 #335211 #115231
monochromatic
#190519 #1F061F #511152 #831C85 #B526B7

Accessibility & contrast

On white

13.53
#511152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511152
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511152#FFFFFF#000000##FFFFFF
##5111521.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511152;
/* rgb */ color: rgb(81, 17, 82);
/* oklch */ color: oklch(31.9% 0.124 327.4);
Tailwind
colors: {
  custom: {
    50: '#855783',
    500: '#511152',
    950: '#000000',
  },
}
SCSS
$custom: #511152;
$custom-light: #855783;
$custom-dark: #000000;
JSON
{
  "hex": "#511152",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 299.077,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31857,
    "c": 0.12427,
    "h": 327.4
  },
  "luminance": 0.02759
}

Semantic roles & 50–950 ramp

primary
#511152
secondary
#358B34
accent
#E93F42
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #511152

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

Preview Lab → · Contrast checker → · Palette generator →

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