#511E61#511E61

#511E61 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.121 H 317.2°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#511E61
RGBrgb(81, 30, 97)
HSLhsl(286, 53%, 25%)
HSVhsv(286, 69%, 38%)
CMYKcmyk(16.5%, 69.1%, 0%, 62%)
CIE-LABlab(22.09, 35.06, -29.33)
CIE-LCHlch(22.09, 45.71, 320.08°)
OKLaboklab(34.36% 0.0887 -0.0822)
OKLCHoklch(34.36% 0.121 317.2)
XYZxyz(6.0150, 3.5412, 11.6736)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E61 #2E611E
analogous
#301E61 #511E61 #611E4F
triadic
#511E61 #61511E #1E6151
tetradic
#511E61 #61301E #2E611E #1E4F61
square
#511E61 #61301E #2E611E #1E4F61
split-complementary
#511E61 #4F611E #1E6130
monochromatic
#140717 #2A1032 #511E61 #782C90 #9F3BBE

Accessibility & contrast

On white

12.29
#511E61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E61
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E61#FFFFFF#000000##FFFFFF
##511E611.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063263
Deuteranopia (green-blind)
#20365F
Tritanopia (blue-blind)
#502A3C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511e61;
/* rgb */ color: rgb(81, 30, 97);
/* oklch */ color: oklch(34.4% 0.121 317.2);
Tailwind
colors: {
  custom: {
    50: '#845e8e',
    500: '#511e61',
    950: '#000000',
  },
}
SCSS
$custom: #511e61;
$custom-light: #845e8e;
$custom-dark: #000000;
JSON
{
  "hex": "#511e61",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 97
  },
  "hsl": {
    "h": 285.672,
    "s": 52.756,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34356,
    "c": 0.12092,
    "h": 317.2
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#511E61
secondary
#589645
accent
#DC4C6E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511E61

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

Preview Lab → · Contrast checker → · Palette generator →

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