Free Accessible CSS Gradient Generator

← All Colors
#CD853F Peru

Peru Hex Code #CD853F

Peru is a light, strong brown with the hex code #CD853F. In RGB it is 205, 133, 63, and in HSL it is 30°, 59%, 53%. It is one of the 148 named colors in CSS, so you can write “peru” instead of the hex code.

HEX
#CD853F
RGB
rgb(205, 133, 63)
HSL
hsl(30, 59%, 53%)
HSV
hsv(30°, 69%, 80%)
CMYK
cmyk(0%, 35%, 69%, 20%)
CSS name
peru

CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.

About Peru

On a white background Peru has a contrast ratio of 2.99:1 (Fail), and on black 7.02:1 (AAA). Black text is the better choice on top of it.

It sits on the warm side of the color wheel, a range that tends to feel energetic and appears to advance toward the viewer.

Brown is earthy and warm. It suits natural, rustic and food-related designs, and works as a softer, more grounded alternative to black.

Shades and tints of Peru

Tints mix Peru with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.

Color harmonies for Peru

These schemes are calculated from Peru on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.

Analogous

Open in the color wheel

Triadic

Open in the color wheel

Tetradic

Open in the color wheel

Square

Open in the color wheel

On the artist’s RYB wheel, the complement of Peru is #3F66CD, close to the named color Royal Blue.

Peru contrast and accessibility

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Peru scores against white and black.

Contrast of Peru with white and black
AgainstRatioAA normalAA largeAAA normalAAA large
White (#ffffff) 2.99:1 ✕ Fail ✕ Fail ✕ Fail ✕ Fail
Black (#000000) 7.02:1 ✓ Pass ✓ Pass ✓ Pass ✓ Pass
Aa White text on Peru2.99:1
Aa Black text on Peru7.02:1

Peru and color blindness

These are approximate previews of how Peru can look with the main types of color vision deficiency.

Protanopia #9B8B37

Peru changes noticeably.

Deuteranopia #AC9C40

Peru changes noticeably.

Tritanopia #DF7576

Peru changes noticeably.

Achromatopsia #959595

Peru changes noticeably.

Gradients with Peru

Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.

Peru to a lighter tint

background: linear-gradient(135deg, #cd853f 0%, #ebceb2 100%);

Peru to its analogous neighbour

background: linear-gradient(135deg, #cd853f 0%, #cdcc3f 100%);

Peru to its complement

background: linear-gradient(135deg, #cd853f 0%, #3f87cd 100%);

Colors similar to Peru

How each close match differs from Peru.

More brown colors →

Use Peru in code

CSS
.element {
  color: #cd853f;
  background-color: #cd853f;
  border-color: peru;   /* peru is a valid CSS color name */
}
CSS variable
:root {
  --color-peru: #cd853f;
}
Tailwind
<!-- Tailwind arbitrary values -->
<div class="bg-[#cd853f] text-[#cd853f] border-[#cd853f]"></div>

/* Tailwind v4 theme color */
@theme {
  --color-peru: #cd853f;
}

Peru questions

What is the hex code for Peru?

The hex code for Peru is #CD853F. In RGB that is rgb(205, 133, 63), and in HSL it is hsl(30, 59%, 53%).

What is the complementary color of Peru?

On the RGB (screen) color wheel, the complement of Peru is #3F87CD, which is close to Steel Blue. On the artist’s RYB wheel it is #3F66CD, close to Royal Blue.

Should I use white or black text on Peru?

Black text. It has a contrast ratio of 7.02:1 against Peru, which is WCAG AAA. The other option scores 2.99:1.

Is Peru accessible as a text color on white?

No. Peru on white scores 2.99:1, which is below the WCAG minimum of 3:1 even for large text.

What are darker and lighter shades of Peru?

Mixing Peru with black gives #A46A32, #7B5026, #523519, #291B0D (20% to 80% black). Mixing it with white gives #D79D65, #E1B68C, #EBCEB2, #F5E7D9 (20% to 80% white).

More color tools