#511E58#511E58

#511E58 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.8% C 0.111 H 322.7°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#511E58
RGBrgb(81, 30, 88)
HSLhsl(293, 49%, 23%)
HSVhsv(293, 66%, 35%)
CMYKcmyk(8%, 65.9%, 0%, 65.5%)
CIE-LABlab(21.52, 33.07, -24.29)
CIE-LCHlch(21.52, 41.04, 323.70°)
OKLaboklab(33.75% 0.0886 -0.0675)
OKLCHoklch(33.75% 0.111 322.7)
XYZxyz(5.6189, 3.3828, 9.5876)
Luminance0.0338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E58 #25581E
analogous
#341E58 #511E58 #581E42
triadic
#511E58 #58511E #1E5851
tetradic
#511E58 #58341E #25581E #1E4258
square
#511E58 #58341E #25581E #1E4258
split-complementary
#511E58 #42581E #1E5834
monochromatic
#150817 #270E2A #511E58 #7B2E86 #A53DB3

Accessibility & contrast

On white

12.53
#511E58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511E58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E58
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E58#FFFFFF#000000##FFFFFF
##511E581.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12305A
Deuteranopia (green-blind)
#263656
Tritanopia (blue-blind)
#522738
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511e58;
/* rgb */ color: rgb(81, 30, 88);
/* oklch */ color: oklch(33.8% 0.111 322.7);
Tailwind
colors: {
  custom: {
    50: '#845e87',
    500: '#511e58',
    950: '#000000',
  },
}
SCSS
$custom: #511e58;
$custom-light: #845e87;
$custom-dark: #000000;
JSON
{
  "hex": "#511e58",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 88
  },
  "hsl": {
    "h": 292.759,
    "s": 49.153,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33752,
    "c": 0.11136,
    "h": 322.7
  },
  "luminance": 0.03382
}

Semantic roles & 50–950 ramp

primary
#511E58
secondary
#4E8D45
accent
#D94F60
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511E58

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

Preview Lab → · Contrast checker → · Palette generator →

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