#511577#511577

#511577 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.155 H 307.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#511577
RGBrgb(81, 21, 119)
HSLhsl(277, 70%, 27%)
HSVhsv(277, 82%, 47%)
CMYKcmyk(31.9%, 82.4%, 0%, 53.3%)
CIE-LABlab(22.36, 44.12, -43.17)
CIE-LCHlch(22.36, 61.73, 315.63°)
OKLaboklab(35.08% 0.0951 -0.1227)
OKLCHoklch(35.08% 0.155 307.8)
XYZxyz(6.9906, 3.6177, 17.7792)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511577 #3B7715
analogous
#201577 #511577 #77156C
triadic
#511577 #775115 #157751
tetradic
#511577 #772015 #3B7715 #156C77
square
#511577 #772015 #3B7715 #156C77
split-complementary
#511577 #6C7715 #157720
monochromatic
#12051A #2E0C43 #511577 #741EAB #972DDA

Accessibility & contrast

On white

12.18
#511577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511577
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511577#FFFFFF#000000##FFFFFF
##5115771.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#4B2E46
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511577;
/* rgb */ color: rgb(81, 21, 119);
/* oklch */ color: oklch(35.1% 0.155 307.8);
Tailwind
colors: {
  custom: {
    50: '#865b9f',
    500: '#511577',
    950: '#000000',
  },
}
SCSS
$custom: #511577;
$custom-light: #865b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#511577",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 276.735,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35078,
    "c": 0.15529,
    "h": 307.8
  },
  "luminance": 0.03618
}

Semantic roles & 50–950 ramp

primary
#511577
secondary
#67AD3B
accent
#ED3B80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511577

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

Preview Lab → · Contrast checker → · Palette generator →

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