AfoliOpen Afoli →

Barney color #AC1DB8

Barney is a color name from the xkcd color survey for the hex code #AC1DB8 — RGB 172, 29, 184, HSL 295°, 73%, 42%.

Open in Afoli Colour tools →

#AC1DB8Barney

Color codes

HEX
#AC1DB8
RGB
rgb(172, 29, 184)
HSL
hsl(295, 73%, 42%)
CMYK
7%, 84%, 0%, 28%
OKLCH
oklch(54% 0.236 324.5)

Tints and shades

#FFEFFF#FCC4FF#F894FF#EB64F6#CE48DA#B327BF#9500A1#73007C#530059#340039#19001C

Color harmonies

Complementary
#AC1DB8#00861E
Analogous
#7D3DE5#AC1DB8#C60076
Triadic
#AC1DB8#8C6800#007E87
Split complementary
#AC1DB8#6E7600#00816B
Tetradic
#AC1DB8#A85400#00861E#0078A6

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Barney text on white5.80 : 177AA — body text
Barney text on black3.62 : 1-24AA for large text only
White text on Barney5.80 : 1-83AA — body text
Black text on Barney3.62 : 127AA for large text only

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Frequently asked questions

What is the hex code of Barney?

Barney has the hex code #AC1DB8, which is RGB 172, 29, 184 and HSL 295°, 73%, 42%.

Which text color reads best on Barney?

White text: contrast 5.80 : 1 (black text: 3.62 : 1).

Which colors go well with Barney?

Its complementary color is #00861E; analogous colors are #7D3DE5 and #C60076; a triadic set adds #8C6800 and #007E87.

Similar colors

Sources and licences

Updated November 21, 2026