Color #511E8D Color / Colour Code #511E8D

    This page shows the hex color code for color #511e8d (#511E8D). The colour is a purple tone with 65% saturation and 34% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.

    #511E8D

    Color Conversions

    HEX
    #511E8D
    RGB
    rgb(81, 30, 141)
    HSL
    hsl(268, 65%, 34%)
    HSV
    hsv(268, 79%, 55%)
    CMYK
    cmyk(43%, 79%, 0%, 45%)

    Accessibility Contrast

    WCAG contrast ratios for #511E8D against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    10.94:1
    AA PassAA Large PassAAA Pass
    Sample Text
    vs Black (#000000)
    1.92:1
    AA FailAA Large FailAAA Fail
    Sample Text
    vs Light Gray (#EEEEEE)
    9.43:1
    AA PassAA Large PassAAA Pass

    Complementary Colors

    #511E8D paired with its color wheel opposite for maximum contrast.

    Analogous Colors

    Hues at 238, 268, and 298 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 268, 28, and 148 degrees.

    Color Palettes Using #511E8D

    Monochromatic Scale

    Five shades at lightness levels 15% through 85% while keeping hue at 268 and saturation at 65%. Use the darkest shade for text and the lightest for backgrounds to build a cohesive single-hue design system.

    #250D3F #491B7E #7A2DD2 #AF81E4 #D7C0F2
    Warm Harmony

    Adjacent hues from 268 to 313 degrees create a warm, unified palette. This analogous scheme works for marketing materials, seasonal campaigns, and any design that needs visual warmth without clashing colors.

    #8742D7 #AD42D7 #D242D7 #D742B7
    Cool Contrast

    Combines the base color at hue 268 with its complement at 88 and two adjacent cool tones. This split-complementary approach provides strong visual contrast while remaining more balanced than a pure complementary scheme.

    #7A2DD2 #85D22D #32D22D #2DD27A
    Pastel Variation

    Five evenly spaced hues at 40% saturation and 80% lightness. Pastels are gentle on the eyes and work well for dashboards, onboarding screens, category tags, and any interface where multiple distinct colors are needed without visual aggression.

    #CBB8E0 #E0B8CD #E0CBB8 #CDE0B8 #B8E0CB

    Shades & Tints of #511E8D

    Lightness variations at hue 268 and 65% saturation.

    CSS Gradients with #511E8D

    Purple to Green
    linear-gradient(135deg, #511e8d, #5a8f1e)
    Analogous Fade
    linear-gradient(90deg, #511e8d, #8b1e8f)
    Deep to Light
    linear-gradient(180deg, #2c104c, #cfb3ef)
    Tricolor Sweep
    linear-gradient(135deg, #531e8f, #8f531e, #1e8f53)

    Design Use Cases for #511E8D

    Vibrant Brand Color

    #511E8D has a strong 65% saturation that makes it ideal for brand identity elements. Use it for logos, primary call-to-action buttons, hero section accents, and marketing materials where visual impact matters. This saturation level is eye-catching without being harsh.

    Primary Interface Color

    At 34% lightness, #511E8D is in the mid-range, making it ideal for interactive elements like buttons, links, and selected states. This lightness level ensures good contrast against both light and dark adjacent elements in most layouts.

    Creativity & Premium Positioning

    #511E8D falls in the purple spectrum (hue 268). Purple communicates creativity, wisdom, and luxury. It is effective for premium product highlights, creative portfolio accents, meditation app interfaces, and rewards program branding. Purple occupies a unique space between the energy of red and the calm of blue.

    Gradient Pairing

    Create a gradient from #511E8D (hue 268) to its complement at hue 88. For a subtler effect, try pairing with an analogous color at hue 298. Use CSS: background: linear-gradient(135deg, #511e8d, #5a8f1e);

    CSS Code for #511E8D

    /* Background */
    background-color: #511e8d;
    background-color: rgb(81, 30, 141);
    background-color: hsl(268, 65%, 34%);
    /* Text */
    color: #511e8d;
    /* Border */
    border: 2px solid #511e8d;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(81, 30, 141, 0.3);
    /* CSS Variable */
    --color-primary: 268 65% 34%;

    Similar Colors

    Colors visually similar to #511E8D based on RGB, lightness, and hue variations.

    Use This Color in Design Tools

    Apply #511E8D across image editing and color design tools.

    About Color #511E8D (#511E8D)

    #511E8D is a purple color (colour) with RGB channel values of 81 red, 30 green, and 141 blue. The blue channel is dominant by a ratio of 4.7:1 over the weakest channel. In HSL terms, the hue sits at 268 degrees with 65% saturation and 34% lightness, placing it in the cool range of the colour spectrum.

    The perceived brightness of #511E8D is 58/255 using the ITU-R BT.601 luma formula (0.299R + 0.587G + 0.114B). This appears dark to the human eye, so pair it with light text for adequate readability. For print production, the CMYK equivalent is 43% cyan, 79% magenta, 0% yellow, and 45% key (black).

    The WCAG contrast ratio of #511E8D against white is 10.94:1 and against black is 1.92:1. This exceeds the AAA requirement (7:1) for normal text on white, making it excellent for body text and small UI labels on light backgrounds.

    The complementary colour #5A8F1E creates maximum visual tension when paired with #511E8D. For more harmonious color combinations, use the analogous colours #1E228F and #8B1E8F, which sit 30 degrees on either side of the hue wheel. To build a complete design system, start with the monochromatic scale above for consistent shade variations, then add one complementary or triadic accent for interactive elements.

    How to Explore Color #511E8D

    1. Enter your color value in HEX format.
    2. The tool converts it to RGB, HSL, CMYK format in real time.
    3. Copy the converted value to your clipboard.

    Color Converter · Contrast Checker

    What is HEX to RGB, HSL, CMYK color conversion

    Converting from HEX to RGB, HSL, CMYK translates a color value between two different color models. Different color models are used in web design (HEX, RGB), print (CMYK), and color theory (HSL, HSV).

    Related Tools & Colors

    Frequently Asked Questions

    What color / colour is #511E8D?
    #511E8D is Color #511E8D, a purple color (colour) with RGB(81, 30, 141), HSL(268, 65%, 34%), and CMYK(43%, 79%, 0%, 45%). Its perceived brightness is 58/255.
    Is #511E8D accessible for text?
    Against white, #511E8D has a contrast ratio of 10.94:1 (passes AA for normal text). Against black, it has 1.92:1 (fails AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #511E8D?
    The complementary colour is #5A8F1E (hue 88). For subtle color combinations, use analogous colours #1E228F and #8B1E8F. The triadic palette adds #8F531E and #1E8F53 for vibrant variety.
    How do I use #511E8D in CSS?
    Use any format: color: #511e8d; or rgb(81, 30, 141); or hsl(268, 65%, 34%). For CSS custom properties: --color-primary: 268 65% 34%; then use it as hsl(var(--color-primary)).
    Is this color / colour explorer free?
    Yes, completely free with no signup required. All colour calculations run in your browser. You can explore any valid hex color code, not just the pre-generated palette.