#511761#511761

#511761 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.131 H 318.0°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#511761
RGBrgb(81, 23, 97)
HSLhsl(287, 62%, 24%)
HSVhsv(287, 76%, 38%)
CMYKcmyk(16.5%, 76.3%, 0%, 62%)
CIE-LABlab(20.93, 38.33, -31.20)
CIE-LCHlch(20.93, 49.43, 320.85°)
OKLaboklab(33.52% 0.0972 -0.0876)
OKLCHoklch(33.52% 0.131 318)
XYZxyz(5.8571, 3.2255, 11.6210)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511761 #276117
analogous
#2C1761 #511761 #61174C
triadic
#511761 #615117 #176151
tetradic
#511761 #612C17 #276117 #174C61
square
#511761 #612C17 #276117 #174C61
split-complementary
#511761 #4C6117 #17612C
monochromatic
#150619 #280B30 #511761 #7A2392 #A42EC4

Accessibility & contrast

On white

12.77
#511761 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#511761 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511761
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511761#FFFFFF#000000##FFFFFF
##5117611.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F63
Deuteranopia (green-blind)
#1A345F
Tritanopia (blue-blind)
#51263A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511761;
/* rgb */ color: rgb(81, 23, 97);
/* oklch */ color: oklch(33.5% 0.131 318.0);
Tailwind
colors: {
  custom: {
    50: '#855a8e',
    500: '#511761',
    950: '#000000',
  },
}
SCSS
$custom: #511761;
$custom-light: #855a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#511761",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 97
  },
  "hsl": {
    "h": 287.027,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33518,
    "c": 0.13088,
    "h": 318
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#511761
secondary
#50983C
accent
#E54366
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511761

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

Preview Lab → · Contrast checker → · Palette generator →

#511761 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva