#511A69#511A69

#511A69 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.135 H 313.5°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#511A69
RGBrgb(81, 26, 105)
HSLhsl(282, 60%, 26%)
HSVhsv(282, 75%, 41%)
CMYKcmyk(22.9%, 75.2%, 0%, 58.8%)
CIE-LABlab(21.97, 38.80, -34.76)
CIE-LCHlch(21.97, 52.09, 318.14°)
OKLaboklab(34.45% 0.0929 -0.0981)
OKLCHoklch(34.45% 0.135 313.5)
XYZxyz(6.3121, 3.5082, 13.7065)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A69 #32691A
analogous
#291A69 #511A69 #691A59
triadic
#511A69 #69511A #1A6951
tetradic
#511A69 #69291A #32691A #1A5969
square
#511A69 #69291A #32691A #1A5969
split-complementary
#511A69 #59691A #1A6929
monochromatic
#130619 #2B0E38 #511A69 #77269A #9D32CB

Accessibility & contrast

On white

12.34
#511A69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511A69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A69
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A69#FFFFFF#000000##FFFFFF
##511A691.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511a69;
/* rgb */ color: rgb(81, 26, 105);
/* oklch */ color: oklch(34.5% 0.135 313.5);
Tailwind
colors: {
  custom: {
    50: '#855c94',
    500: '#511a69',
    950: '#000000',
  },
}
SCSS
$custom: #511a69;
$custom-light: #855c94;
$custom-dark: #000000;
JSON
{
  "hex": "#511a69",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 105
  },
  "hsl": {
    "h": 281.772,
    "s": 60.305,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34451,
    "c": 0.13513,
    "h": 313.5
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#511A69
secondary
#5D9E40
accent
#E34475
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511A69

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

Preview Lab → · Contrast checker → · Palette generator →

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