#511456#511456

#511456 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.124 H 324.7°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#511456
RGBrgb(81, 20, 86)
HSLhsl(295, 62%, 21%)
HSVhsv(295, 77%, 34%)
CMYKcmyk(5.8%, 76.7%, 0%, 66.3%)
CIE-LABlab(19.73, 37.30, -25.80)
CIE-LCHlch(19.73, 45.35, 325.33°)
OKLaboklab(32.42% 0.1013 -0.0718)
OKLCHoklch(32.42% 0.124 324.7)
XYZxyz(5.3231, 2.9219, 9.0859)
Luminance0.0292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511456 #195614
analogous
#301456 #511456 #56143A
triadic
#511456 #565114 #145651
tetradic
#511456 #563014 #195614 #143A56
square
#511456 #563014 #195614 #143A56
split-complementary
#511456 #3A5614 #145630
monochromatic
#170619 #220824 #511456 #802088 #AF2BB9

Accessibility & contrast

On white

13.25
#511456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#511456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511456
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511456#FFFFFF#000000##FFFFFF
##5114561.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032B58
Deuteranopia (green-blind)
#213254
Tritanopia (blue-blind)
#531F33
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #511456;
/* rgb */ color: rgb(81, 20, 86);
/* oklch */ color: oklch(32.4% 0.124 324.7);
Tailwind
colors: {
  custom: {
    50: '#845886',
    500: '#511456',
    950: '#000000',
  },
}
SCSS
$custom: #511456;
$custom-light: #845886;
$custom-dark: #000000;
JSON
{
  "hex": "#511456",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 295.455,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.32422,
    "c": 0.12414,
    "h": 324.7
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#511456
secondary
#3E8E38
accent
#E5424F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511456

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

Preview Lab → · Contrast checker → · Palette generator →

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