#511B69#511B69

#511B69 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.134 H 313.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#511B69
RGBrgb(81, 27, 105)
HSLhsl(282, 59%, 26%)
HSVhsv(282, 74%, 41%)
CMYKcmyk(22.9%, 74.3%, 0%, 58.8%)
CIE-LABlab(22.14, 38.34, -34.50)
CIE-LCHlch(22.14, 51.58, 318.02°)
OKLaboklab(34.57% 0.0918 -0.0973)
OKLCHoklch(34.57% 0.134 313.3)
XYZxyz(6.3346, 3.5533, 13.7140)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B69 #33691B
analogous
#2A1B69 #511B69 #691B5A
triadic
#511B69 #69511B #1B6951
tetradic
#511B69 #692A1B #33691B #1B5A69
square
#511B69 #692A1B #33691B #1B5A69
split-complementary
#511B69 #5A691B #1B692A
monochromatic
#130618 #2B0E38 #511B69 #77289A #9C34CA

Accessibility & contrast

On white

12.28
#511B69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511B69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B69
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B69#FFFFFF#000000##FFFFFF
##511B691.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326B
Deuteranopia (green-blind)
#153667
Tritanopia (blue-blind)
#4F2B40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511b69;
/* rgb */ color: rgb(81, 27, 105);
/* oklch */ color: oklch(34.6% 0.134 313.3);
Tailwind
colors: {
  custom: {
    50: '#855d94',
    500: '#511b69',
    950: '#000000',
  },
}
SCSS
$custom: #511b69;
$custom-light: #855d94;
$custom-dark: #000000;
JSON
{
  "hex": "#511b69",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 105
  },
  "hsl": {
    "h": 281.538,
    "s": 59.091,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34566,
    "c": 0.1338,
    "h": 313.3
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#511B69
secondary
#5E9E42
accent
#E24676
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511B69

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

Preview Lab → · Contrast checker → · Palette generator →

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