#511B61#511B61

#511B61 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.0% C 0.125 H 317.5°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#511B61
RGBrgb(81, 27, 97)
HSLhsl(286, 56%, 24%)
HSVhsv(286, 72%, 38%)
CMYKcmyk(16.5%, 72.2%, 0%, 62%)
CIE-LABlab(21.57, 36.52, -30.18)
CIE-LCHlch(21.57, 47.38, 320.44°)
OKLaboklab(33.98% 0.0925 -0.0846)
OKLCHoklch(33.98% 0.125 317.5)
XYZxyz(5.9426, 3.3965, 11.6495)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B61 #2B611B
analogous
#2E1B61 #511B61 #611B4E
triadic
#511B61 #61511B #1B6151
tetradic
#511B61 #612E1B #2B611B #1B4E61
square
#511B61 #612E1B #2B611B #1B4E61
split-complementary
#511B61 #4E611B #1B612E
monochromatic
#140718 #290E31 #511B61 #792891 #A136C1

Accessibility & contrast

On white

12.51
#511B61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511B61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B61
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B61#FFFFFF#000000##FFFFFF
##511B611.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003063
Deuteranopia (green-blind)
#1D355F
Tritanopia (blue-blind)
#50283B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511b61;
/* rgb */ color: rgb(81, 27, 97);
/* oklch */ color: oklch(34.0% 0.125 317.5);
Tailwind
colors: {
  custom: {
    50: '#845c8e',
    500: '#511b61',
    950: '#000000',
  },
}
SCSS
$custom: #511b61;
$custom-light: #845c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#511b61",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 97
  },
  "hsl": {
    "h": 286.286,
    "s": 56.452,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33977,
    "c": 0.12539,
    "h": 317.5
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#511B61
secondary
#559741
accent
#E0486B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511B61

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

Preview Lab → · Contrast checker → · Palette generator →

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