#511F63#511F63

#511F63 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.122 H 315.9°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#511F63
RGBrgb(81, 31, 99)
HSLhsl(284, 52%, 25%)
HSVhsv(284, 69%, 39%)
CMYKcmyk(18.2%, 68.7%, 0%, 61.2%)
CIE-LABlab(22.41, 35.01, -30.14)
CIE-LCHlch(22.41, 46.20, 319.27°)
OKLaboklab(34.63% 0.0873 -0.0846)
OKLCHoklch(34.63% 0.122 315.9)
XYZxyz(6.1351, 3.6304, 12.1795)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F63 #31631F
analogous
#2F1F63 #511F63 #631F53
triadic
#511F63 #63511F #1F6351
tetradic
#511F63 #632F1F #31631F #1F5363
square
#511F63 #632F1F #31631F #1F5363
split-complementary
#511F63 #53631F #1F632F
monochromatic
#130717 #2B1034 #511F63 #772E92 #9D3CC0

Accessibility & contrast

On white

12.17
#511F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F63
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F63#FFFFFF#000000##FFFFFF
##511F631.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053365
Deuteranopia (green-blind)
#1F3761
Tritanopia (blue-blind)
#502C3E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511f63;
/* rgb */ color: rgb(81, 31, 99);
/* oklch */ color: oklch(34.6% 0.122 315.9);
Tailwind
colors: {
  custom: {
    50: '#845f90',
    500: '#511f63',
    950: '#000000',
  },
}
SCSS
$custom: #511f63;
$custom-light: #845f90;
$custom-dark: #000000;
JSON
{
  "hex": "#511f63",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 99
  },
  "hsl": {
    "h": 284.118,
    "s": 52.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34628,
    "c": 0.12157,
    "h": 315.9
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#511F63
secondary
#5C9846
accent
#DC4C72
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #511F63

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

Preview Lab → · Contrast checker → · Palette generator →

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