#511562#511562

#511562 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.134 H 317.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#511562
RGBrgb(81, 21, 98)
HSLhsl(287, 65%, 23%)
HSVhsv(287, 79%, 38%)
CMYKcmyk(17.3%, 78.6%, 0%, 61.6%)
CIE-LABlab(20.70, 39.38, -32.22)
CIE-LCHlch(20.70, 50.89, 320.71°)
OKLaboklab(33.38% 0.0993 -0.0906)
OKLCHoklch(33.38% 0.134 317.6)
XYZxyz(5.8658, 3.1678, 11.8554)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511562 #266215
analogous
#2A1562 #511562 #62154C
triadic
#511562 #625115 #156251
tetradic
#511562 #622A15 #266215 #154C62
square
#511562 #622A15 #266215 #154C62
split-complementary
#511562 #4C6215 #15622A
monochromatic
#150519 #270A30 #511562 #7B2094 #A42BC7

Accessibility & contrast

On white

12.86
#511562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#511562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511562
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511562#FFFFFF#000000##FFFFFF
##5115621.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E64
Deuteranopia (green-blind)
#173460
Tritanopia (blue-blind)
#50253A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511562;
/* rgb */ color: rgb(81, 21, 98);
/* oklch */ color: oklch(33.4% 0.134 317.6);
Tailwind
colors: {
  custom: {
    50: '#85598f',
    500: '#511562',
    950: '#000000',
  },
}
SCSS
$custom: #511562;
$custom-light: #85598f;
$custom-dark: #000000;
JSON
{
  "hex": "#511562",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 286.753,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33384,
    "c": 0.13439,
    "h": 317.6
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#511562
secondary
#4F993A
accent
#E84065
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511562

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

Preview Lab → · Contrast checker → · Palette generator →

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