#511A61#511A61

#511A61 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 33.9% C 0.127 H 317.7°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#511A61
RGBrgb(81, 26, 97)
HSLhsl(286, 58%, 24%)
HSVhsv(286, 73%, 38%)
CMYKcmyk(16.5%, 73.2%, 0%, 62%)
CIE-LABlab(21.40, 36.99, -30.44)
CIE-LCHlch(21.40, 47.91, 320.55°)
OKLaboklab(33.86% 0.0937 -0.0854)
OKLCHoklch(33.86% 0.127 317.7)
XYZxyz(5.9201, 3.3514, 11.6420)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511A61 #2A611A
analogous
#2E1A61 #511A61 #611A4E
triadic
#511A61 #61511A #1A6151
tetradic
#511A61 #612E1A #2A611A #1A4E61
square
#511A61 #612E1A #2A611A #1A4E61
split-complementary
#511A61 #4E611A #1A612E
monochromatic
#140618 #290D31 #511A61 #792791 #A234C2

Accessibility & contrast

On white

12.57
#511A61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511A61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511A61
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511A61#FFFFFF#000000##FFFFFF
##511A611.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511a61;
/* rgb */ color: rgb(81, 26, 97);
/* oklch */ color: oklch(33.9% 0.127 317.7);
Tailwind
colors: {
  custom: {
    50: '#855c8e',
    500: '#511a61',
    950: '#000000',
  },
}
SCSS
$custom: #511a61;
$custom-light: #855c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#511a61",
  "rgb": {
    "r": 81,
    "g": 26,
    "b": 97
  },
  "hsl": {
    "h": 286.479,
    "s": 57.724,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33858,
    "c": 0.12681,
    "h": 317.7
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#511A61
secondary
#549740
accent
#E1476A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511A61

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

Preview Lab → · Contrast checker → · Palette generator →

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