#511F68#511F68

#511F68 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.127 H 313.3°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#511F68
RGBrgb(81, 31, 104)
HSLhsl(281, 54%, 26%)
HSVhsv(281, 70%, 41%)
CMYKcmyk(22.1%, 70.2%, 0%, 59.2%)
CIE-LABlab(22.75, 36.17, -32.86)
CIE-LCHlch(22.75, 48.87, 317.75°)
OKLaboklab(34.99% 0.0871 -0.0925)
OKLCHoklch(34.99% 0.127 313.3)
XYZxyz(6.3816, 3.7290, 13.4776)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F68 #36681F
analogous
#2D1F68 #511F68 #681F5B
triadic
#511F68 #68511F #1F6851
tetradic
#511F68 #682D1F #36681F #1F5B68
square
#511F68 #682D1F #36681F #1F5B68
split-complementary
#511F68 #5B681F #1F682D
monochromatic
#120718 #2C1139 #511F68 #762D97 #9A3CC5

Accessibility & contrast

On white

12.03
#511F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F68
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F68#FFFFFF#000000##FFFFFF
##511F681.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346A
Deuteranopia (green-blind)
#1A3766
Tritanopia (blue-blind)
#4F2D40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511f68;
/* rgb */ color: rgb(81, 31, 104);
/* oklch */ color: oklch(35.0% 0.127 313.3);
Tailwind
colors: {
  custom: {
    50: '#855f94',
    500: '#511f68',
    950: '#000000',
  },
}
SCSS
$custom: #511f68;
$custom-light: #855f94;
$custom-dark: #000000;
JSON
{
  "hex": "#511f68",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 104
  },
  "hsl": {
    "h": 281.096,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34986,
    "c": 0.12706,
    "h": 313.3
  },
  "luminance": 0.03729
}

Semantic roles & 50–950 ramp

primary
#511F68
secondary
#629C46
accent
#DD4A79
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511F68

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

Preview Lab → · Contrast checker → · Palette generator →

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