Color #28152F Color / Colour Code #28152F

    This page shows the hex color code for color #28152f (#28152F). The colour is a purple tone with 38% saturation and 13% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.

    #28152F

    Color Conversions

    HEX
    #28152F
    RGB
    rgb(40, 21, 47)
    HSL
    hsl(284, 38%, 13%)
    HSV
    hsv(284, 55%, 18%)
    CMYK
    cmyk(15%, 55%, 0%, 82%)

    Accessibility Contrast

    WCAG contrast ratios for #28152F against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    16.96:1
    AA PassAA Large PassAAA Pass
    Sample Text
    vs Black (#000000)
    1.24:1
    AA FailAA Large FailAAA Fail
    Sample Text
    vs Light Gray (#EEEEEE)
    14.61:1
    AA PassAA Large PassAAA Pass

    Complementary Colors

    #28152F paired with its color wheel opposite for maximum contrast.

    Analogous Colors

    Hues at 254, 284, and 314 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 284, 44, and 164 degrees.

    Color Palettes Using #28152F

    Monochromatic Scale

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

    #2D1835 #5A2F6A #964FB0 #C095D0 #E0CAE7
    Warm Harmony

    Adjacent hues from 284 to 329 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.

    #A161B8 #B661B8 #B861A4 #B8618E
    Cool Contrast

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

    #964FB0 #69B04F #4FB066 #4FB096
    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.

    #D6B8E0 #E0B8C2 #E0D6B8 #C2E0B8 #B8E0D6

    Shades & Tints of #28152F

    Lightness variations at hue 284 and 38% saturation.

    CSS Gradients with #28152F

    Purple to Green
    linear-gradient(135deg, #28152f, #1b2e15)
    Analogous Fade
    linear-gradient(90deg, #28152f, #2e1528)
    Deep to Light
    linear-gradient(180deg, #361c3f, #d9c0e3)
    Tricolor Sweep
    linear-gradient(135deg, #27152e, #2e2715, #152e27)

    Design Use Cases for #28152F

    Balanced UI Color

    At 38% saturation, #28152F strikes a balance between vibrancy and restraint. This makes it versatile for primary UI elements like navigation bars, card headers, and form accents. It draws attention without overwhelming adjacent content.

    Dark Mode Background

    At just 13% lightness, #28152F works as a dark mode background or overlay color. Dark backgrounds reduce eye strain in low-light environments and make bright accent colors pop. Pair with light text (minimum 4.5:1 contrast ratio) for readability.

    Creativity & Premium Positioning

    #28152F falls in the purple spectrum (hue 284). 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 #28152F (hue 284) to its complement at hue 104. For a subtler effect, try pairing with an analogous color at hue 314. Use CSS: background: linear-gradient(135deg, #28152f, #1b2e15);

    CSS Code for #28152F

    /* Background */
    background-color: #28152f;
    background-color: rgb(40, 21, 47);
    background-color: hsl(284, 38%, 13%);
    /* Text */
    color: #28152f;
    /* Border */
    border: 2px solid #28152f;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(40, 21, 47, 0.3);
    /* CSS Variable */
    --color-primary: 284 38% 13%;

    Similar Colors

    Colors visually similar to #28152F based on RGB, lightness, and hue variations.

    Use This Color in Design Tools

    Apply #28152F across image editing and color design tools.

    About Color #28152F (#28152F)

    #28152F is a purple color (colour) with RGB channel values of 40 red, 21 green, and 47 blue. The blue channel is dominant by a ratio of 2.2:1 over the weakest channel. In HSL terms, the hue sits at 284 degrees with 38% saturation and 13% lightness, placing it in the cool range of the colour spectrum.

    The perceived brightness of #28152F is 30/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 15% cyan, 55% magenta, 0% yellow, and 82% key (black).

    The WCAG contrast ratio of #28152F against white is 16.96:1 and against black is 1.24: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 #1B2E15 creates maximum visual tension when paired with #28152F. For more harmonious color combinations, use the analogous colours #1A152E and #2E1528, 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 #28152F

    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 #28152F?
    #28152F is Color #28152F, a purple color (colour) with RGB(40, 21, 47), HSL(284, 38%, 13%), and CMYK(15%, 55%, 0%, 82%). Its perceived brightness is 30/255.
    Is #28152F accessible for text?
    Against white, #28152F has a contrast ratio of 16.96:1 (passes AA for normal text). Against black, it has 1.24:1 (fails AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #28152F?
    The complementary colour is #1B2E15 (hue 104). For subtle color combinations, use analogous colours #1A152E and #2E1528. The triadic palette adds #2E2715 and #152E27 for vibrant variety.
    How do I use #28152F in CSS?
    Use any format: color: #28152f; or rgb(40, 21, 47); or hsl(284, 38%, 13%). For CSS custom properties: --color-primary: 284 38% 13%; 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.