#511F4B#511F4B

#511F4B is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.1% C 0.097 H 332.4°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#511F4B
RGBrgb(81, 31, 75)
HSLhsl(307, 45%, 22%)
HSVhsv(307, 62%, 32%)
CMYKcmyk(0%, 61.7%, 7.4%, 68.2%)
CIE-LABlab(20.97, 29.88, -16.41)
CIE-LCHlch(20.97, 34.09, 331.23°)
OKLaboklab(33.12% 0.0856 -0.0448)
OKLCHoklch(33.12% 0.097 332.4)
XYZxyz(5.1533, 3.2377, 7.0088)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F4B #1F5125
analogous
#3E1F51 #511F4B #511F32
triadic
#511F4B #4B511F #1F4B51
tetradic
#511F4B #513E1F #1F5125 #1F3251
square
#511F4B #513E1F #1F5125 #1F3251
split-complementary
#511F4B #32511F #1F513E
monochromatic
#160814 #250E22 #511F4B #7D3074 #AA419D

Accessibility & contrast

On white

12.75
#511F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F4B
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F4B#FFFFFF#000000##FFFFFF
##511F4B1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2E4C
Deuteranopia (green-blind)
#2D354A
Tritanopia (blue-blind)
#542331
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511f4b;
/* rgb */ color: rgb(81, 31, 75);
/* oklch */ color: oklch(33.1% 0.097 332.4);
Tailwind
colors: {
  custom: {
    50: '#845e7d',
    500: '#511f4b',
    950: '#000000',
  },
}
SCSS
$custom: #511f4b;
$custom-light: #845e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#511f4b",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 75
  },
  "hsl": {
    "h": 307.2,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33115,
    "c": 0.09658,
    "h": 332.4
  },
  "luminance": 0.03237
}

Semantic roles & 50–950 ramp

primary
#511F4B
secondary
#46864E
accent
#D46353
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #511F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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