#511F58#511F58

#511F58 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.9% C 0.110 H 322.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#511F58
RGBrgb(81, 31, 88)
HSLhsl(293, 48%, 23%)
HSVhsv(293, 65%, 35%)
CMYKcmyk(8%, 64.8%, 0%, 65.5%)
CIE-LABlab(21.71, 32.55, -24.00)
CIE-LCHlch(21.71, 40.44, 323.61°)
OKLaboklab(33.89% 0.0872 -0.0666)
OKLCHoklch(33.89% 0.11 322.6)
XYZxyz(5.6446, 3.4342, 9.5962)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F58 #26581F
analogous
#341F58 #511F58 #581F42
triadic
#511F58 #58511F #1F5851
tetradic
#511F58 #58341F #26581F #1F4258
square
#511F58 #58341F #26581F #1F4258
split-complementary
#511F58 #42581F #1F5834
monochromatic
#150817 #270F2B #511F58 #7B2F85 #A43FB3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511F58#FFFFFF#000000##FFFFFF
##511F581.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)
#14305A
Deuteranopia (green-blind)
#263656
Tritanopia (blue-blind)
#522738
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511f58;
/* rgb */ color: rgb(81, 31, 88);
/* oklch */ color: oklch(33.9% 0.110 322.6);
Tailwind
colors: {
  custom: {
    50: '#845e87',
    500: '#511f58',
    950: '#000000',
  },
}
SCSS
$custom: #511f58;
$custom-light: #845e87;
$custom-dark: #000000;
JSON
{
  "hex": "#511f58",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 292.632,
    "s": 47.899,
    "l": 23.333
  },
  "oklch": {
    "l": 0.3389,
    "c": 0.10971,
    "h": 322.6
  },
  "luminance": 0.03434
}

Semantic roles & 50–950 ramp

primary
#511F58
secondary
#4F8D46
accent
#D75061
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511F58

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

Preview Lab → · Contrast checker → · Palette generator →

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