#511758#511758

#511758 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 32.9% C 0.122 H 323.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#511758
RGBrgb(81, 23, 88)
HSLhsl(294, 59%, 22%)
HSVhsv(294, 74%, 35%)
CMYKcmyk(8%, 73.9%, 0%, 65.5%)
CIE-LABlab(20.31, 36.43, -26.21)
CIE-LCHlch(20.31, 44.88, 324.26°)
OKLaboklab(32.88% 0.0977 -0.073)
OKLCHoklch(32.88% 0.122 323.2)
XYZxyz(5.4610, 3.0670, 9.5350)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511758 #1E5817
analogous
#311758 #511758 #58173F
triadic
#511758 #585117 #175851
tetradic
#511758 #583117 #1E5817 #173F58
square
#511758 #583117 #1E5817 #173F58
split-complementary
#511758 #3F5817 #175831
monochromatic
#160618 #240A27 #511758 #7E2489 #AA30B9

Accessibility & contrast

On white

13.02
#511758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#511758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511758
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511758#FFFFFF#000000##FFFFFF
##5117581.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052D5A
Deuteranopia (green-blind)
#213356
Tritanopia (blue-blind)
#522235
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #511758;
/* rgb */ color: rgb(81, 23, 88);
/* oklch */ color: oklch(32.9% 0.122 323.2);
Tailwind
colors: {
  custom: {
    50: '#845a87',
    500: '#511758',
    950: '#000000',
  },
}
SCSS
$custom: #511758;
$custom-light: #845a87;
$custom-dark: #000000;
JSON
{
  "hex": "#511758",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 293.538,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32881,
    "c": 0.12199,
    "h": 323.2
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#511758
secondary
#458F3C
accent
#E24657
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #511758

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

Preview Lab → · Contrast checker → · Palette generator →

#511758 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva