#511B62#511B62

#511B62 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.0% C 0.126 H 317.0°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#511B62
RGBrgb(81, 27, 98)
HSLhsl(286, 57%, 25%)
HSVhsv(286, 72%, 38%)
CMYKcmyk(17.3%, 72.4%, 0%, 61.6%)
CIE-LABlab(21.64, 36.75, -30.72)
CIE-LCHlch(21.64, 47.90, 320.10°)
OKLaboklab(34.05% 0.0924 -0.0862)
OKLCHoklch(34.05% 0.126 317)
XYZxyz(5.9896, 3.4153, 11.8966)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B62 #2C621B
analogous
#2E1B62 #511B62 #621B50
triadic
#511B62 #62511B #1B6251
tetradic
#511B62 #622E1B #2C621B #1B5062
square
#511B62 #622E1B #2C621B #1B5062
split-complementary
#511B62 #50621B #1B622E
monochromatic
#140718 #290E32 #511B62 #792892 #A035C2

Accessibility & contrast

On white

12.48
#511B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511B62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B62
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B62#FFFFFF#000000##FFFFFF
##511B621.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#1C3560
Tritanopia (blue-blind)
#50293C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511b62;
/* rgb */ color: rgb(81, 27, 98);
/* oklch */ color: oklch(34.0% 0.126 317.0);
Tailwind
colors: {
  custom: {
    50: '#845c8f',
    500: '#511b62',
    950: '#000000',
  },
}
SCSS
$custom: #511b62;
$custom-light: #845c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#511b62",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 98
  },
  "hsl": {
    "h": 285.634,
    "s": 56.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34049,
    "c": 0.12643,
    "h": 317
  },
  "luminance": 0.03415
}

Semantic roles & 50–950 ramp

primary
#511B62
secondary
#569841
accent
#E0486C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511B62

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

Preview Lab → · Contrast checker → · Palette generator →

#511B62 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva