#511B67#511B67

#511B67 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.132 H 314.3°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#511B67
RGBrgb(81, 27, 103)
HSLhsl(283, 58%, 25%)
HSVhsv(283, 74%, 40%)
CMYKcmyk(21.4%, 73.8%, 0%, 59.6%)
CIE-LABlab(21.99, 37.88, -33.43)
CIE-LCHlch(21.99, 50.52, 318.57°)
OKLaboklab(34.42% 0.092 -0.0942)
OKLCHoklch(34.42% 0.132 314.3)
XYZxyz(6.2330, 3.5127, 13.1790)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B67 #31671B
analogous
#2B1B67 #511B67 #671B57
triadic
#511B67 #67511B #1B6751
tetradic
#511B67 #672B1B #31671B #1B5767
square
#511B67 #672B1B #31671B #1B5767
split-complementary
#511B67 #57671B #1B672B
monochromatic
#130618 #2B0E37 #511B67 #772897 #9D34C8

Accessibility & contrast

On white

12.34
#511B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511B67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B67
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B67#FFFFFF#000000##FFFFFF
##511B671.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003269
Deuteranopia (green-blind)
#173665
Tritanopia (blue-blind)
#4F2B3F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511b67;
/* rgb */ color: rgb(81, 27, 103);
/* oklch */ color: oklch(34.4% 0.132 314.3);
Tailwind
colors: {
  custom: {
    50: '#855d93',
    500: '#511b67',
    950: '#000000',
  },
}
SCSS
$custom: #511b67;
$custom-light: #855d93;
$custom-dark: #000000;
JSON
{
  "hex": "#511b67",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 282.632,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34416,
    "c": 0.13169,
    "h": 314.3
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#511B67
secondary
#5C9C42
accent
#E24673
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511B67

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

Preview Lab → · Contrast checker → · Palette generator →

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