Hex Color #540112 - Custom Color

Color Codes

HEX
#540112
RGB
rgb(84, 1, 18)
HSL
hsl(348, 98%, 17%)
CMYK
cmyk(0%, 99%, 79%, 67%)
HSV
hsv(348, 99%, 33%)
Color Name
Custom Color

Color Variations

Color Harmonies

Accessibility

WCAG Contrast Ratios

Text on White Background

Sample Text

Contrast Ratio: 15.11:1
Pass - WCAG AA (Normal Text)
Pass - WCAG AAA (Normal Text)

Text on Black Background

Sample Text

Contrast Ratio: 1.39:1
Fail - WCAG AA (Normal Text)
Fail - WCAG AAA (Normal Text)

Recommended Text Color

For best readability on this background color, use white text.

Similar Colors

Color in Use

Card with colored border

Background with 20% opacity

CSS Code

.element {
background-color: #540112;
color: #540112;
border-color: #540112;
}

Tailwind CSS (with arbitrary values)

bg-[#540112]
text-[#540112]
border-[#540112]
// Example usage:
<div className="bg-[#540112]">