#511260#511260

#511260 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.136 H 319.0°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#511260
RGBrgb(81, 18, 96)
HSLhsl(288, 68%, 22%)
HSVhsv(288, 81%, 38%)
CMYKcmyk(15.6%, 81.3%, 0%, 62.4%)
CIE-LABlab(20.15, 40.13, -31.79)
CIE-LCHlch(20.15, 51.19, 321.61°)
OKLaboklab(32.95% 0.1026 -0.0893)
OKLCHoklch(32.95% 0.136 319)
XYZxyz(5.7207, 3.0267, 11.3470)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511260 #216012
analogous
#2A1260 #511260 #601248
triadic
#511260 #605112 #126051
tetradic
#511260 #602A12 #216012 #124860
square
#511260 #602A12 #216012 #124860
split-complementary
#511260 #486012 #12602A
monochromatic
#16051A #26082C #511260 #7C1C94 #A825C7

Accessibility & contrast

On white

13.08
#511260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#511260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511260
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511260#FFFFFF#000000##FFFFFF
##5112601.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511260;
/* rgb */ color: rgb(81, 18, 96);
/* oklch */ color: oklch(32.9% 0.136 319.0);
Tailwind
colors: {
  custom: {
    50: '#85588e',
    500: '#511260',
    950: '#000000',
  },
}
SCSS
$custom: #511260;
$custom-light: #85588e;
$custom-dark: #000000;
JSON
{
  "hex": "#511260",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 288.462,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32945,
    "c": 0.13599,
    "h": 319
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#511260
secondary
#499836
accent
#EB3D5E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511260

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

Preview Lab → · Contrast checker → · Palette generator →

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