#A7271F

Closest named color: Brown (#A52A2A). oklch(48% 0.166 28.6), rgb(167, 39, 31).

Aa

White text reads best on this color (7.11:1).

About this color

#A7271F is a medium-dark, vivid red. In OKLCH its lightness is 48%, its chroma 0.166 and its hue 29°. Its hue sits on the warm side of the wheel. The nearest named color is Brown (#A52A2A), ΔE 0.011 away. White text reads best on it, at 7.11:1.

Hue familyReds
Lightnessmedium-dark (48%)
Chromavivid (0.166)
Temperaturewarm
Nearest nameBrown (#A52A2A)
Black text2.95:1
White text7.11:1

Values

HEX#A7271F
RGBrgb(167, 39, 31)
HSLhsl(4, 69%, 39%)
OKLCHoklch(48% 0.166 28.6)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #A7271F 7.11:1 AAA Lc -88.3 Fine for body text
Black text on #A7271F 2.95:1 Fails Lc 20.8 Dividers and decoration only
#A7271F text on white 7.11:1 AAA Lc 83.3 Fine for body text
#A7271F text on black 2.95:1 Fails Lc -18.7 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 700.

  1. Step 50

    50

    #FDF3F1

    oklch(97.1% 0.011 31.1)

  2. Step 100

    100

    #F9E4E1

    oklch(93.5% 0.023 27.3)

  3. Step 200

    200

    #F5CFC9

    oklch(88.5% 0.044 28.5)

  4. Step 300

    300

    #F0ADA3

    oklch(80.8% 0.081 28.5)

  5. Step 400

    400

    #E57F72

    oklch(70.6% 0.128 28.4)

  6. Step 500

    500

    #DB5A4D

    oklch(63.1% 0.165 28.4)

  7. Step 600

    600

    #C63B30

    oklch(55.6% 0.178 28.7)

  8. Step 700

    700 (this color)

    #A7271F

    oklch(48% 0.166 28.6)

  9. Step 800

    800

    #8B261E

    oklch(42.8% 0.138 28.7)

  10. Step 900

    900

    #70251E

    oklch(37.8% 0.108 28.5)

  11. Step 950

    950

    #421712

    oklch(27.1% 0.068 29)

Export this scale for Tailwind in the Tailwind colors tool

#A7271F with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#4F461C0.177
Deuteranopia (no green cones)#6E62190.162
Tritanopia (no blue cones)#B800270.042
Achromatopsia (no color)#5858580.167

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #A7271F

    #A7271F

    oklch(48% 0.166 28.6)

  • #006A76

    #006A76

    oklch(48% 0.083 208.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #A7271F

    #A7271F

    oklch(48% 0.166 28.6)

  • #A1255C

    #A1255C

    oklch(48.1% 0.165 358.8)

  • #8C4A00

    #8C4A00

    oklch(48% 0.115 58.2)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #A7271F

    #A7271F

    oklch(48% 0.166 28.6)

  • #006D5E

    #006D5E

    oklch(47.9% 0.088 178.9)

  • #006593

    #006593

    oklch(48.1% 0.107 238.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #A7271F

    #A7271F

    oklch(48% 0.166 28.6)

  • #00712D

    #00712D

    oklch(47.9% 0.136 148.7)

  • #3852BA

    #3852BA

    oklch(48% 0.167 268.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #A7271F

    #A7271F

    oklch(48% 0.166 28.6)

  • #586600

    #586600

    oklch(48.1% 0.113 118.7)

  • #006A76

    #006A76

    oklch(48% 0.083 208.4)

  • #6C40AC

    #6C40AC

    oklch(48% 0.166 298.7)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #A7271F, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #A7271F in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.