#511460#511460

#511460 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.134 H 318.8°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#511460
RGBrgb(81, 20, 96)
HSLhsl(288, 66%, 23%)
HSVhsv(288, 79%, 38%)
CMYKcmyk(15.6%, 79.2%, 0%, 62.4%)
CIE-LABlab(20.42, 39.36, -31.36)
CIE-LCHlch(20.42, 50.32, 321.45°)
OKLaboklab(33.14% 0.1006 -0.0881)
OKLCHoklch(33.14% 0.134 318.8)
XYZxyz(5.7545, 3.0944, 11.3582)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511460 #236014
analogous
#2B1460 #511460 #601449
triadic
#511460 #605114 #146051
tetradic
#511460 #602B14 #236014 #144960
square
#511460 #602B14 #236014 #144960
split-complementary
#511460 #496014 #14602B
monochromatic
#150519 #26092D #511460 #7C1F93 #A629C5

Accessibility & contrast

On white

12.97
#511460 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#511460 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511460
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511460#FFFFFF#000000##FFFFFF
##5114601.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D62
Deuteranopia (green-blind)
#19335E
Tritanopia (blue-blind)
#512439
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511460;
/* rgb */ color: rgb(81, 20, 96);
/* oklch */ color: oklch(33.1% 0.134 318.8);
Tailwind
colors: {
  custom: {
    50: '#85598e',
    500: '#511460',
    950: '#000000',
  },
}
SCSS
$custom: #511460;
$custom-light: #85598e;
$custom-dark: #000000;
JSON
{
  "hex": "#511460",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 96
  },
  "hsl": {
    "h": 288.158,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33135,
    "c": 0.13366,
    "h": 318.8
  },
  "luminance": 0.03094
}

Semantic roles & 50–950 ramp

primary
#511460
secondary
#4B9838
accent
#E83F61
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511460

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

Preview Lab → · Contrast checker → · Palette generator →

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