#511468#511468

#511468 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.141 H 314.6°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#511468
RGBrgb(81, 20, 104)
HSLhsl(284, 68%, 24%)
HSVhsv(284, 81%, 41%)
CMYKcmyk(22.1%, 80.8%, 0%, 59.2%)
CIE-LABlab(21.02, 41.09, -35.66)
CIE-LCHlch(21.02, 54.40, 319.05°)
OKLaboklab(33.75% 0.0994 -0.1007)
OKLCHoklch(33.75% 0.141 314.6)
XYZxyz(6.1418, 3.2493, 13.3977)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511468 #2B6814
analogous
#271468 #511468 #681455
triadic
#511468 #685114 #146851
tetradic
#511468 #682714 #2B6814 #145568
square
#511468 #682714 #2B6814 #145568
split-complementary
#511468 #556814 #146827
monochromatic
#14051A #290A35 #511468 #791E9B #A128CF

Accessibility & contrast

On white

12.73
#511468 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511468
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511468#FFFFFF#000000##FFFFFF
##5114681.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#0F3466
Tritanopia (blue-blind)
#4F273D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511468;
/* rgb */ color: rgb(81, 20, 104);
/* oklch */ color: oklch(33.7% 0.141 314.6);
Tailwind
colors: {
  custom: {
    50: '#855994',
    500: '#511468',
    950: '#000000',
  },
}
SCSS
$custom: #511468;
$custom-light: #855994;
$custom-dark: #000000;
JSON
{
  "hex": "#511468",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 104
  },
  "hsl": {
    "h": 283.571,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33748,
    "c": 0.14145,
    "h": 314.6
  },
  "luminance": 0.03249
}

Semantic roles & 50–950 ramp

primary
#511468
secondary
#559F39
accent
#EB3D6D
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511468

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

Preview Lab → · Contrast checker → · Palette generator →

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