#511F53#511F53

#511F53 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.6% C 0.105 H 326.1°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#511F53
RGBrgb(81, 31, 83)
HSLhsl(298, 46%, 22%)
HSVhsv(298, 63%, 33%)
CMYKcmyk(2.4%, 62.7%, 0%, 67.5%)
CIE-LABlab(21.41, 31.49, -21.12)
CIE-LCHlch(21.41, 37.92, 326.15°)
OKLaboklab(33.58% 0.0867 -0.0583)
OKLCHoklch(33.58% 0.105 326.1)
XYZxyz(5.4445, 3.3542, 8.5426)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F53 #21531F
analogous
#371F53 #511F53 #531F3B
triadic
#511F53 #53511F #1F5351
tetradic
#511F53 #53371F #21531F #1F3B53
square
#511F53 #53371F #21531F #1F3B53
split-complementary
#511F53 #3B531F #1F5337
monochromatic
#160816 #260E26 #511F53 #7C3080 #A840AC

Accessibility & contrast

On white

12.57
#511F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F53
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F53#FFFFFF#000000##FFFFFF
##511F531.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182F55
Deuteranopia (green-blind)
#293652
Tritanopia (blue-blind)
#532635
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511f53;
/* rgb */ color: rgb(81, 31, 83);
/* oklch */ color: oklch(33.6% 0.105 326.1);
Tailwind
colors: {
  custom: {
    50: '#845e83',
    500: '#511f53',
    950: '#000000',
  },
}
SCSS
$custom: #511f53;
$custom-light: #845e83;
$custom-dark: #000000;
JSON
{
  "hex": "#511f53",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 83
  },
  "hsl": {
    "h": 297.692,
    "s": 45.614,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33578,
    "c": 0.10451,
    "h": 326.1
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#511F53
secondary
#498846
accent
#D55358
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511F53

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

Preview Lab → · Contrast checker → · Palette generator →

#511F53 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva