#511F4D#511F4D

#511F4D is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.2% C 0.099 H 330.7°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#511F4D
RGBrgb(81, 31, 77)
HSLhsl(305, 45%, 22%)
HSVhsv(305, 62%, 32%)
CMYKcmyk(0%, 61.7%, 4.9%, 68.2%)
CIE-LABlab(21.08, 30.27, -17.60)
CIE-LCHlch(21.08, 35.02, 329.83°)
OKLaboklab(33.23% 0.0859 -0.0482)
OKLCHoklch(33.23% 0.099 330.7)
XYZxyz(5.2228, 3.2655, 7.3749)
Luminance0.0326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F4D #1F5123
analogous
#3C1F51 #511F4D #511F34
triadic
#511F4D #4D511F #1F4D51
tetradic
#511F4D #513C1F #1F5123 #1F3451
square
#511F4D #513C1F #1F5123 #1F3451
split-complementary
#511F4D #34511F #1F513C
monochromatic
#160815 #250E23 #511F4D #7D3077 #AA41A1

Accessibility & contrast

On white

12.70
#511F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F4D
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F4D#FFFFFF#000000##FFFFFF
##511F4D1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2E4E
Deuteranopia (green-blind)
#2C354C
Tritanopia (blue-blind)
#542432
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511f4d;
/* rgb */ color: rgb(81, 31, 77);
/* oklch */ color: oklch(33.2% 0.099 330.7);
Tailwind
colors: {
  custom: {
    50: '#845e7f',
    500: '#511f4d',
    950: '#000000',
  },
}
SCSS
$custom: #511f4d;
$custom-light: #845e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#511f4d",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 304.8,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33227,
    "c": 0.0985,
    "h": 330.7
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#511F4D
secondary
#46864B
accent
#D45E53
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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