#511F64#511F64

#511F64 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.123 H 315.4°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#511F64
RGBrgb(81, 31, 100)
HSLhsl(283, 53%, 26%)
HSVhsv(283, 69%, 39%)
CMYKcmyk(19%, 69%, 0%, 60.8%)
CIE-LABlab(22.48, 35.24, -30.69)
CIE-LCHlch(22.48, 46.73, 318.95°)
OKLaboklab(34.7% 0.0873 -0.0862)
OKLCHoklch(34.7% 0.123 315.4)
XYZxyz(6.1832, 3.6496, 12.4329)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F64 #32641F
analogous
#2E1F64 #511F64 #641F54
triadic
#511F64 #64511F #1F6451
tetradic
#511F64 #642E1F #32641F #1F5464
square
#511F64 #642E1F #32641F #1F5464
split-complementary
#511F64 #54641F #1F642E
monochromatic
#130717 #2B1135 #511F64 #772D93 #9D3CC1

Accessibility & contrast

On white

12.14
#511F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F64
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F64#FFFFFF#000000##FFFFFF
##511F641.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511f64;
/* rgb */ color: rgb(81, 31, 100);
/* oklch */ color: oklch(34.7% 0.123 315.4);
Tailwind
colors: {
  custom: {
    50: '#845f90',
    500: '#511f64',
    950: '#000000',
  },
}
SCSS
$custom: #511f64;
$custom-light: #845f90;
$custom-dark: #000000;
JSON
{
  "hex": "#511f64",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 100
  },
  "hsl": {
    "h": 283.478,
    "s": 52.672,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34698,
    "c": 0.12266,
    "h": 315.4
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#511F64
secondary
#5D9846
accent
#DC4C73
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #511F64

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

Preview Lab → · Contrast checker → · Palette generator →

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