Photo in the color Outer Space
Pictured: Outer Space, the closest color we have a photo of (#414A4C)
rgb(66, 66, 66)
#424242

Black Panther #424242 RGB Color Code

Name from the community color list.

Black Panther (#424242) is a dark neutral gray. In RGB it is made of 26% red, 26% green and 26% blue (R 66, G 66, B 66). The red channel is the strongest. In HSL it has a hue of 0°, 0% saturation and 26% lightness. Its relative luminance is 0.054, so white text is easier to read on top of it. For print, a rough CMYK match is 0% cyan, 0% magenta, 0% yellow and 74% black. Check it against your printer's ICC profile before you print. Its saturation is very low, so it works as a neutral. It goes well with almost any accent color.

Open in color picker

Black Panther color codes

#424242 in every common color format. Click a value to copy it.

FormatValueNotesCopy
HEX #424242 Valid CSS
RGB rgb(66, 66, 66) Valid CSS
HSL hsl(0, 0%, 26%) Valid CSS
HSV / HSB hsv(0, 0%, 26%) Not a CSS format
HWB hwb(0 26% 74%) Valid CSS
CMYK cmyk(0%, 0%, 0%, 74%) Approximate (no ICC profile)
OKLCH oklch(37.91% 0 0) Valid CSS
OKLab oklab(37.91% 0 0) Valid CSS
CIELAB lab(27.97% 0 0) D50, as in CSS
CIELCH lch(27.97% 0 0) Valid CSS
Display P3 color(display-p3 0.2588 0.2588 0.2588) Valid CSS
XYZ (D65) color(xyz-d65 0.0518 0.0545 0.0593) Valid CSS
Decimal 4342338 Integer (0xRRGGBB)

CMYK here is a rough screen match without an ICC profile. See CMYK and print. Relative luminance: 0.0545. Nearest web-safe color: #333333.

Mix Black Panther with other colors

See what #424242 makes with red paint, under a green light, printed with cyan ink and in a digital blend with blue. Click a picture to change the colors and amounts in the color mixer.

Use Black Panther in your code

Ready to paste into CSS, Sass, Tailwind, iOS, Android and Flutter. Click the icon to copy a line.

WhereCodeCopy
CSS variable--black-panther: #424242;
Sass variable$black-panther: #424242;
Tailwind CSS v4@theme { --color-black-panther: #424242; }
Tailwind CSS v3 configcolors: { 'black-panther': '#424242' }
SwiftUIColor(red: 0.259, green: 0.259, blue: 0.259)
UIKitUIColor(red: 0.259, green: 0.259, blue: 0.259, alpha: 1)
Android XML<color name="black_panther">#FF424242</color>
Flutter and Jetpack ComposeColor(0xFF424242)

Accessibility and contrast

White text works best on #424242 (10.05:1, AAA). Here is how #424242 does as a text color:

Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
10.05:1 on white
APCA Lc 93
AAA
Large heading text
Body text at 16px. The quick brown fox jumps over the lazy dog.
2.09:1 on black
APCA Lc -9
Fails AATry #747474

Check this color against any background in the contrast checker. WCAG ratios and APCA Lc values measure different things, so one can't stand in for the other. Learn more.

How people with color blindness see Black Panther

#424242 next to its complement and its two triadic colors, as seen with each type of color blindness.

  • Normal visionhow most people see it
  • Protanopiano red cones, about 1% of men
  • Deuteranopiano green cones, the most common type
  • Tritanopiano blue cones, very rare
  • Achromatopsiano color at all, very rare

#424242 has almost no hue, so it looks much the same with every type of color blindness. Only its lightness counts. Try your own colors in the color blindness simulator.

Black Panther in a user interface

A sample app screen with #424242 as the main color, on a light and a dark theme.

Light theme

Dark theme

Buttons and bars use #424242 as it is. On the dark theme, #424242 is too hard to read as text (1.77:1), so links, the badge and outline text use #808080 there (4.50:1). Build a full color scheme around it in the UI color preview.

Color harmonies for Black Panther

These schemes turn the hue of #424242 around the color wheel. Each swatch links to its own page.

Complementary

Two colors on opposite sides of the wheel. This gives the most contrast.

Open palette

Analogous

Hues that sit next to each other and look good together.

Open palette

Triadic

Three hues spaced evenly around the wheel. Bold, but still balanced.

Open palette

Split complementary

A base color plus the two hues on each side of its opposite. Strong contrast that clashes less.

Open palette

Tetradic (rectangle)

Two pairs of opposite colors. Let one color lead and use the others less.

Open palette

Square

Four hues 90° apart, spread evenly around the wheel.

Open palette

Monochromatic

One hue at different levels of lightness and saturation.

Open palette

Gradients with Black Panther

Four CSS gradients made from #424242. Copy the code, or open one in the gradient generator to change it.

Soft tint

From a pale tint to the full color.

background: linear-gradient(90deg, #D6D6D6, #424242);

Edit in the gradient generator

Deep shade

The color fading into a dark shade.

background: linear-gradient(180deg, #424242, #0B0B0B);

Edit in the gradient generator

Analogous

Its two neighbors on the color wheel.

background: linear-gradient(135deg, #424242, #424242, #424242);

Edit in the gradient generator

Triadic

A bold blend with a triadic color, through a clean middle.

background: linear-gradient(135deg, #424242, #424242, #424242);

Edit in the gradient generator

Shades, tints and tones of Black Panther

Shades are darker, tints are lighter and tones are grayer. We make them in OKLCH so the steps look even. Hover a step to see its code, or click it to open it.

Design system scale (50 to 950)

Black Panther sits at step 800. Export the full scale as CSS variables or Tailwind tokens from the picker.

  1. 50
    F7F7F7
  2. 100
    EDEDED
  3. 200
    DBDBDB
  4. 300
    C1C1C1
  5. 400
    A3A3A3
  6. 500
    868686
  7. 600
    6C6C6C
  8. 700
    555555
  9. 800
    424242
  10. 900
    303030
  11. 950
    1D1D1D

Closest RAL, Tailwind and CSS colors

The nearest match to #424242 in three color systems that designers and builders use.

ΔE is the distance in OKLab: under 2 is hard to see, over 10 is a clearly different color. Browse all RAL colors, the Tailwind palette or the 148 CSS color names. RAL values on screens are only a guide, so check a real color chart before you order paint.

The named colors that look closest to this one (ΔE in OKLab). Browse all shades of gray or search the color library.