Color #38168D Color / Colour Code #38168D

    This page shows the hex color code for color #38168d (#38168D). The colour is a purple tone with 73% saturation and 32% lightness. Explore its conversions, colour palettes, gradients, accessibility data, and CSS code below.

    #38168D

    Color Conversions

    HEX
    #38168D
    RGB
    rgb(56, 22, 141)
    HSL
    hsl(257, 73%, 32%)
    HSV
    hsv(257, 84%, 55%)
    CMYK
    cmyk(60%, 84%, 0%, 45%)

    Accessibility Contrast

    WCAG contrast ratios for #38168D against common backgrounds.

    Sample Text
    vs White (#FFFFFF)
    12.59:1
    AA PassAA Large PassAAA Pass
    Sample Text
    vs Black (#000000)
    1.67:1
    AA FailAA Large FailAAA Fail
    Sample Text
    vs Light Gray (#EEEEEE)
    10.85:1
    AA PassAA Large PassAAA Pass

    Complementary Colors

    #38168D paired with its color wheel opposite for maximum contrast.

    Analogous Colors

    Hues at 227, 257, and 287 degrees for harmonious combinations.

    Triadic Palette

    Three colors at 257, 17, and 137 degrees.

    Color Palettes Using #38168D

    Monochromatic Scale

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

    #1A0A42 #341584 #5722DD #9A7BEA #CDBDF5
    Warm Harmony

    Adjacent hues from 257 to 302 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.

    #6838E0 #9238E0 #BC38E0 #E038DA
    Cool Contrast

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

    #5926D9 #A6D926 #4DD926 #26D959
    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.

    #C3B8E0 #E0B8D5 #E0C3B8 #D5E0B8 #B8E0C3

    Shades & Tints of #38168D

    Lightness variations at hue 257 and 73% saturation.

    CSS Gradients with #38168D

    Purple to Green
    linear-gradient(135deg, #38168d, #6b8d16)
    Analogous Fade
    linear-gradient(90deg, #38168d, #73168d)
    Deep to Light
    linear-gradient(180deg, #1f0c4f, #c3b0f3)
    Tricolor Sweep
    linear-gradient(135deg, #38168d, #8d3816, #168d38)

    Design Use Cases for #38168D

    Vibrant Brand Color

    #38168D has a strong 73% 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 32% lightness, #38168D 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

    #38168D falls in the purple spectrum (hue 257). 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 #38168D (hue 257) to its complement at hue 77. For a subtler effect, try pairing with an analogous color at hue 287. Use CSS: background: linear-gradient(135deg, #38168d, #6b8d16);

    CSS Code for #38168D

    /* Background */
    background-color: #38168d;
    background-color: rgb(56, 22, 141);
    background-color: hsl(257, 73%, 32%);
    /* Text */
    color: #38168d;
    /* Border */
    border: 2px solid #38168d;
    /* Shadow */
    box-shadow: 0 4px 14px rgba(56, 22, 141, 0.3);
    /* CSS Variable */
    --color-primary: 257 73% 32%;

    Similar Colors

    Colors visually similar to #38168D based on RGB, lightness, and hue variations.

    Use This Color in Design Tools

    Apply #38168D across image editing and color design tools.

    About Color #38168D (#38168D)

    #38168D is a purple color (colour) with RGB channel values of 56 red, 22 green, and 141 blue. The blue channel is dominant by a ratio of 6.4:1 over the weakest channel. In HSL terms, the hue sits at 257 degrees with 73% saturation and 32% lightness, placing it in the cool range of the colour spectrum.

    The perceived brightness of #38168D is 46/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 60% cyan, 84% magenta, 0% yellow, and 45% key (black).

    The WCAG contrast ratio of #38168D against white is 12.59:1 and against black is 1.67: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 #6B8D16 creates maximum visual tension when paired with #38168D. For more harmonious color combinations, use the analogous colours #16308D and #73168D, 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 #38168D

    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 #38168D?
    #38168D is Color #38168D, a purple color (colour) with RGB(56, 22, 141), HSL(257, 73%, 32%), and CMYK(60%, 84%, 0%, 45%). Its perceived brightness is 46/255.
    Is #38168D accessible for text?
    Against white, #38168D has a contrast ratio of 12.59:1 (passes AA for normal text). Against black, it has 1.67:1 (fails AA). Use the contrast checker tool for custom background pairings.
    What colours pair well with #38168D?
    The complementary colour is #6B8D16 (hue 77). For subtle color combinations, use analogous colours #16308D and #73168D. The triadic palette adds #8D3816 and #168D38 for vibrant variety.
    How do I use #38168D in CSS?
    Use any format: color: #38168d; or rgb(56, 22, 141); or hsl(257, 73%, 32%). For CSS custom properties: --color-primary: 257 73% 32%; 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.