#511B63#511B63

#511B63 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.127 H 316.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#511B63
RGBrgb(81, 27, 99)
HSLhsl(285, 57%, 25%)
HSVhsv(285, 73%, 39%)
CMYKcmyk(18.2%, 72.7%, 0%, 61.2%)
CIE-LABlab(21.71, 36.97, -31.27)
CIE-LCHlch(21.71, 48.42, 319.78°)
OKLaboklab(34.12% 0.0924 -0.0878)
OKLCHoklch(34.12% 0.127 316.4)
XYZxyz(6.0371, 3.4343, 12.1468)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B63 #2D631B
analogous
#2D1B63 #511B63 #631B51
triadic
#511B63 #63511B #1B6351
tetradic
#511B63 #632D1B #2D631B #1B5163
square
#511B63 #632D1B #2D631B #1B5163
split-complementary
#511B63 #51631B #1B632D
monochromatic
#140718 #2A0E33 #511B63 #782893 #A035C3

Accessibility & contrast

On white

12.45
#511B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B63
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B63#FFFFFF#000000##FFFFFF
##511B631.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b63;
/* rgb */ color: rgb(81, 27, 99);
/* oklch */ color: oklch(34.1% 0.127 316.4);
Tailwind
colors: {
  custom: {
    50: '#855c90',
    500: '#511b63',
    950: '#000000',
  },
}
SCSS
$custom: #511b63;
$custom-light: #855c90;
$custom-dark: #000000;
JSON
{
  "hex": "#511b63",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 285,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34121,
    "c": 0.12747,
    "h": 316.4
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#511B63
secondary
#579841
accent
#E0476E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #511B63

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

Preview Lab → · Contrast checker → · Palette generator →

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