#511D67#511D67

#511D67 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.129 H 314.1°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#511D67
RGBrgb(81, 29, 103)
HSLhsl(282, 56%, 26%)
HSVhsv(282, 72%, 40%)
CMYKcmyk(21.4%, 71.8%, 0%, 59.6%)
CIE-LABlab(22.33, 36.93, -32.89)
CIE-LCHlch(22.33, 49.45, 318.31°)
OKLaboklab(34.66% 0.0896 -0.0926)
OKLCHoklch(34.66% 0.129 314.1)
XYZxyz(6.2805, 3.6075, 13.1948)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D67 #33671D
analogous
#2C1D67 #511D67 #671D58
triadic
#511D67 #67511D #1D6751
tetradic
#511D67 #672C1D #33671D #1D5867
square
#511D67 #672C1D #33671D #1D5867
split-complementary
#511D67 #58671D #1D672C
monochromatic
#130718 #2B1037 #511D67 #772A97 #9C38C7

Accessibility & contrast

On white

12.20
#511D67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511D67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D67
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D67#FFFFFF#000000##FFFFFF
##511D671.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#193765
Tritanopia (blue-blind)
#4F2C3F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511d67;
/* rgb */ color: rgb(81, 29, 103);
/* oklch */ color: oklch(34.7% 0.129 314.1);
Tailwind
colors: {
  custom: {
    50: '#855e93',
    500: '#511d67',
    950: '#000000',
  },
}
SCSS
$custom: #511d67;
$custom-light: #855e93;
$custom-dark: #000000;
JSON
{
  "hex": "#511d67",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 103
  },
  "hsl": {
    "h": 282.162,
    "s": 56.061,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34658,
    "c": 0.12887,
    "h": 314.1
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

primary
#511D67
secondary
#5E9C44
accent
#DF4875
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511D67

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

Preview Lab → · Contrast checker → · Palette generator →

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