#511F6A#511F6A

#511F6A is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.1% C 0.129 H 312.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#511F6A
RGBrgb(81, 31, 106)
HSLhsl(280, 55%, 27%)
HSVhsv(280, 71%, 42%)
CMYKcmyk(23.6%, 70.8%, 0%, 58.4%)
CIE-LABlab(22.90, 36.65, -33.93)
CIE-LCHlch(22.90, 49.94, 317.21°)
OKLaboklab(35.13% 0.0869 -0.0957)
OKLCHoklch(35.13% 0.129 312.3)
XYZxyz(6.4844, 3.7701, 14.0190)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F6A #386A1F
analogous
#2C1F6A #511F6A #6A1F5E
triadic
#511F6A #6A511F #1F6A51
tetradic
#511F6A #6A2C1F #386A1F #1F5E6A
square
#511F6A #6A2C1F #386A1F #1F5E6A
split-complementary
#511F6A #5E6A1F #1F6A2C
monochromatic
#120718 #2D113B #511F6A #752D99 #993DC6

Accessibility & contrast

On white

11.97
#511F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#511F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F6A
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F6A#FFFFFF#000000##FFFFFF
##511F6A1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#183868
Tritanopia (blue-blind)
#4E2E41
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511f6a;
/* rgb */ color: rgb(81, 31, 106);
/* oklch */ color: oklch(35.1% 0.129 312.3);
Tailwind
colors: {
  custom: {
    50: '#855f95',
    500: '#511f6a',
    950: '#000000',
  },
}
SCSS
$custom: #511f6a;
$custom-light: #855f95;
$custom-dark: #000000;
JSON
{
  "hex": "#511f6a",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 280,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35134,
    "c": 0.12926,
    "h": 312.3
  },
  "luminance": 0.0377
}

Semantic roles & 50–950 ramp

primary
#511F6A
secondary
#649E47
accent
#DE4A7B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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