#511F65#511F65

#511F65 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.8% C 0.124 H 314.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#511F65
RGBrgb(81, 31, 101)
HSLhsl(283, 53%, 26%)
HSVhsv(283, 69%, 40%)
CMYKcmyk(19.8%, 69.3%, 0%, 60.4%)
CIE-LABlab(22.55, 35.47, -31.23)
CIE-LCHlch(22.55, 47.26, 318.64°)
OKLaboklab(34.77% 0.0872 -0.0878)
OKLCHoklch(34.77% 0.124 314.8)
XYZxyz(6.2319, 3.6691, 12.6893)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F65 #33651F
analogous
#2E1F65 #511F65 #651F56
triadic
#511F65 #65511F #1F6551
tetradic
#511F65 #652E1F #33651F #1F5665
square
#511F65 #652E1F #33651F #1F5665
split-complementary
#511F65 #56651F #1F652E
monochromatic
#130717 #2B1136 #511F65 #772D94 #9C3CC3

Accessibility & contrast

On white

12.11
#511F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F65
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F65#FFFFFF#000000##FFFFFF
##511F651.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013367
Deuteranopia (green-blind)
#1D3763
Tritanopia (blue-blind)
#4F2C3F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511f65;
/* rgb */ color: rgb(81, 31, 101);
/* oklch */ color: oklch(34.8% 0.124 314.8);
Tailwind
colors: {
  custom: {
    50: '#845f91',
    500: '#511f65',
    950: '#000000',
  },
}
SCSS
$custom: #511f65;
$custom-light: #845f91;
$custom-dark: #000000;
JSON
{
  "hex": "#511f65",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 101
  },
  "hsl": {
    "h": 282.857,
    "s": 53.03,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34769,
    "c": 0.12375,
    "h": 314.8
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#511F65
secondary
#5E9946
accent
#DC4B75
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050D
muted
#7C797D

Preview Lab

Preview with #511F65

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

Preview Lab → · Contrast checker → · Palette generator →

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