#af0708
a dark, electric red · warm · closest name: Firebrick
At a glance
Every number on this page in one read: what #af0708 is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #af0708 |
| RGB | rgb(175, 7, 8) |
| HSL | hsl(360, 92%, 36%) |
| CMYK | cmyk(0%, 96%, 95%, 31%) |
| LAB | lab(36.5 59.6 47.5) |
| LCH | lch(36.5 76.3 38.5) |
| OKLCH | oklch(0.476 0.192 28.7) |
| Decimal | 11470600 |
| Display P3 | color(display-p3 0.686 0.027 0.031) |
Copy-ready code
/* CSS */
color: #af0708;
background-color: #af0708;
/* Tailwind (arbitrary) */
class="text-[#af0708] bg-[#af0708]"
/* SCSS */
$brand: #af0708;
/* SwiftUI */
Color(red: 0.686, green: 0.027, blue: 0.031)
/* Android */
Color.parseColor("#af0708")
/* Flutter */
Color(0xFFAF0708)
/* Python / OpenCV (BGR) */
(8, 7, 175)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #af0708 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FDF2F2;
--brand-100: #FBE4E4;
--brand-200: #F9C3C3;
--brand-300: #FB9394;
--brand-400: #F95D5E;
--brand-500: #F62729;
--brand-600: #EB090B;
--brand-700: #C40809;
--brand-800: #af0708;
--brand-900: #71090A;
--brand-950: #470606;
--brand: #af0708;
--brand-ink: #ffffff;
}Colors that work with #af0708
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #af0708
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Headers, footers and dark-mode surfaces
- ✓Brand accents, badges and data highlights
- ⚠Text on black or near-black surfaces
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Black text placed on it
- ⚠Pairing with a same-lightness hue — edges vibrate
Similar colors
One move away from this hex in each direction. Every swatch is its own page.
Color relationships
The wheel positions with their names attached, so you can grab the one you actually need.
| Complementary | #07AFAE | Directly opposite — maximum tension | |
| Analogous left | #AF075C | Neighbour, quieter | |
| Analogous right | #AF5A07 | Neighbour, quieter | |
| Split-complement 1 | #07AF5A | Contrast without the clash | |
| Split-complement 2 | #075CAF | Contrast without the clash | |
| Triadic 1 | #08AF07 | Even thirds — balanced and loud | |
| Triadic 2 | #0708AF | Even thirds — balanced and loud | |
| Tetradic | #5CAF07 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af0708 text on a black background
contrast 2.86:1
#af0708 text on a white background
contrast 7.35:1
CSS3 live lab
The quick brown fox
color: #af0708;
background-color: #af0708;
Glowing headline
text-shadow: 2px 2px 8px #af0708;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 7, 8, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 7, 8, 0.45);
border: 3px solid #af0708; background: linear-gradient(135deg, #af0708, #AF7607);
Monochromatic scale
Palettes built from #af0708
Shades — darker
Tints — lighter
Color harmonies
Nearest named colors
Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.
Closest color with a full write-up: Sangria (#92000a) — ΔE2000 6.1 away, with its history, psychology and brand usage.
#af0708 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#af0708, answered
What color is #af0708?
#af0708 is a dark electric red, closest to Firebrick (ΔE2000 4.4). It sits at 360° on the hue wheel with 92% saturation and 36% lightness, which reads as warm.
What is the RGB value of #af0708?
rgb(175, 7, 8) — 175 red, 7 green and 8 blue out of 255, or 68.6% / 2.7% / 3.1% by channel.
Is #af0708 a light or a dark color?
It is a dark color. Relative luminance is 0.0928 and perceived brightness is 38%, so white text on it reaches 7.35:1.
Should I use black or white text on #af0708?
White. It scores 7.35:1 against #af0708, versus 2.86:1 for black — AAA at any size.
What is the complementary color of #af0708?
#07AFAE sits directly opposite on the wheel. Softer options are the split-complements #07AF5A and #075CAF, which give the same contrast with far less vibration.
What colors go well with #af0708?
For interface work: #FAF4F4 as the surface, #EDC0C0 for borders, #9B4B4B for secondary text, #03C996 as an accent and #7B0506 for hover and pressed states. For a palette, the analogous pair #AF075C and #AF5A07 stays calm, while #07AFAE is the loudest partner.
What is #af0708 in CMYK for printing?
cmyk(0%, 96%, 95%, 31%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #af0708 warm or cool?
Warm — it scores 17 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF3007; nudged cooler, #B10545.