#511B65#511B65

#511B65 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.3% C 0.130 H 315.4°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#511B65
RGBrgb(81, 27, 101)
HSLhsl(284, 58%, 25%)
HSVhsv(284, 73%, 40%)
CMYKcmyk(19.8%, 73.3%, 0%, 60.4%)
CIE-LABlab(21.85, 37.42, -32.35)
CIE-LCHlch(21.85, 49.47, 319.16°)
OKLaboklab(34.27% 0.0922 -0.091)
OKLCHoklch(34.27% 0.13 315.4)
XYZxyz(6.1339, 3.4730, 12.6566)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B65 #2F651B
analogous
#2C1B65 #511B65 #651B54
triadic
#511B65 #65511B #1B6551
tetradic
#511B65 #652C1B #2F651B #1B5465
square
#511B65 #652C1B #2F651B #1B5465
split-complementary
#511B65 #54651B #1B652C
monochromatic
#130618 #2A0E35 #511B65 #782895 #9E35C6

Accessibility & contrast

On white

12.39
#511B65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#511B65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B65
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B65#FFFFFF#000000##FFFFFF
##511B651.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003167
Deuteranopia (green-blind)
#193663
Tritanopia (blue-blind)
#502A3E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511b65;
/* rgb */ color: rgb(81, 27, 101);
/* oklch */ color: oklch(34.3% 0.130 315.4);
Tailwind
colors: {
  custom: {
    50: '#855c91',
    500: '#511b65',
    950: '#000000',
  },
}
SCSS
$custom: #511b65;
$custom-light: #855c91;
$custom-dark: #000000;
JSON
{
  "hex": "#511b65",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 101
  },
  "hsl": {
    "h": 283.784,
    "s": 57.813,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34267,
    "c": 0.12958,
    "h": 315.4
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#511B65
secondary
#599A41
accent
#E14770
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511B65

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

Preview Lab → · Contrast checker → · Palette generator →

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