#511147#511147

#511147 is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.2% C 0.115 H 335.1°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#511147
RGBrgb(81, 17, 71)
HSLhsl(309, 65%, 19%)
HSVhsv(309, 79%, 32%)
CMYKcmyk(0%, 79%, 12.3%, 68.2%)
CIE-LABlab(18.39, 35.70, -17.71)
CIE-LCHlch(18.39, 39.85, 333.61°)
OKLaboklab(31.16% 0.1042 -0.0484)
OKLCHoklch(31.16% 0.115 335.1)
XYZxyz(4.7312, 2.6056, 6.2138)
Luminance0.0261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511147 #11511B
analogous
#3B1151 #511147 #511127
triadic
#511147 #475111 #114751
tetradic
#511147 #513B11 #11511B #112751
square
#511147 #513B11 #11511B #112751
split-complementary
#511147 #275111 #11513B
monochromatic
#190516 #1E061B #511147 #841C73 #B626A0

Accessibility & contrast

On white

13.81
#511147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#511147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511147
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511147#FFFFFF#000000##FFFFFF
##5111471.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112748
Deuteranopia (green-blind)
#273045
Tritanopia (blue-blind)
#55162A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #511147;
/* rgb */ color: rgb(81, 17, 71);
/* oklch */ color: oklch(31.2% 0.115 335.1);
Tailwind
colors: {
  custom: {
    50: '#84567a',
    500: '#511147',
    950: '#000000',
  },
}
SCSS
$custom: #511147;
$custom-light: #84567a;
$custom-dark: #000000;
JSON
{
  "hex": "#511147",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 309.375,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31163,
    "c": 0.11483,
    "h": 335.1
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

primary
#511147
secondary
#348A41
accent
#E85A40
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #511147

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

Preview Lab → · Contrast checker → · Palette generator →

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