Skip to content

#f40c02

a balanced, electric red · warm · closest name: Red

RGB
244, 12, 2
HSL
3°, 98%, 48%
CMYK
0, 95, 99, 4
Luminance
0.1950

At a glance

Every number on this page in one read: what #f40c02 is made of, how bright it looks, and which way it leans.

Hex
#f40c02
Hue
red
Saturation
98%
electric
Lightness
48%
balanced
Brightness
96%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1950
WCAG relative
Temperature
Warm
15/100 cool
Color family
Red
Tone
Electric
Best ink
Black
4.90:1
Closest name
Red
ΔE2000 2.1
Where it sits
Hue3° of 360°
Saturation98%
Lightness48%
Temperature
Warm ← → Cool15% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#f40c02
RGBrgb(244, 12, 2)
HSLhsl(3, 98%, 48%)
CMYKcmyk(0%, 95%, 99%, 4%)
LABlab(51.3 76.6 64.6)
LCHlch(51.3 100.2 40.1)
OKLCHoklch(0.610 0.247 29.5)
Decimal15993858
Display P3color(display-p3 0.957 0.047 0.008)

Copy-ready code

/* CSS */
color: #f40c02;
background-color: #f40c02;
/* Tailwind (arbitrary) */
class="text-[#f40c02] bg-[#f40c02]"
/* SCSS */
$brand: #f40c02;
/* SwiftUI */
Color(red: 0.957, green: 0.047, blue: 0.008)
/* Android */
Color.parseColor("#f40c02")
/* Flutter */
Color(0xFFF40C02)
/* Python / OpenCV (BGR) */
(2, 12, 244)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #f40c02 · 4.90:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.29:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.90:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #f40c02 as text scores 4.29:1 on white and 4.90:1 on black.

Accessibility — WCAG contrast

Aa
#f40c02 on white: 4.29:1
AA ✗ fail · AA-large · AAA
Aa
#f40c02 on black: 4.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #695C00
deuteranopia · #9D8A00
tritanopia · #FF0014

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #f40c02 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FEF2F1
#FCE4E3
#FBC3C1
#FE9490
#FE5F58
#FD2A20
#f40c02
#CA0A02
#A20801
#750A06
#490704
Base = 600Lightest = 50 · #FEF2F1Darkest = 950 · #490704
:root {
  --brand-50: #FEF2F1;
  --brand-100: #FCE4E3;
  --brand-200: #FBC3C1;
  --brand-300: #FE9490;
  --brand-400: #FE5F58;
  --brand-500: #FD2A20;
  --brand-600: #f40c02;
  --brand-700: #CA0A02;
  --brand-800: #A20801;
  --brand-900: #750A06;
  --brand-950: #490704;
  --brand: #f40c02;
  --brand-ink: #000000;
}

Colors that work with #f40c02

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF5F4
Tinted page background
Border#EDC2C0
Hairlines and dividers
Muted text#9B4E4B
Captions on the surface
Accent#00CCA2
Second voice, not a rival
Dark variant#7E0601
Hover, pressed, headers
Light variant#FFE7E6
Selected rows, tints
Dark surface#241414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #f40c02

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#02EAF4
Analogous left#F40271
Analogous right#F48502
Split-complement 1#02F485
Split-complement 2#0271F4
Triadic 1#02F40C
Triadic 2#0C02F4
Tetradic#71F402

RGB percentages

Red95.7%
Green4.7%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta95.1%
Yellow99.2%
Key (black)4.3%

Color previews

#f40c02 text on a black background

contrast 4.90:1

Card sample

#f40c02 text on a white background

contrast 4.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #f40c02;
Background color
Panel with #f40c02 background
background-color: #f40c02;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #f40c02;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(244, 12, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(244, 12, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f40c02;
background: linear-gradient(135deg, #f40c02, #F4AD02);

Monochromatic scale

Palettes built from #f40c02

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.

#f40c02 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Food and drinkEntertainmentRetailSport
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#f40c02, answered

What color is #f40c02?

#f40c02 is a balanced electric red, closest to Red (ΔE2000 2.1). It sits at 3° on the hue wheel with 98% saturation and 48% lightness, which reads as warm.

What is the RGB value of #f40c02?

rgb(244, 12, 2) — 244 red, 12 green and 2 blue out of 255, or 95.7% / 4.7% / 0.8% by channel.

Is #f40c02 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1950 and perceived brightness is 52%, so black text on it reaches 4.90:1.

Should I use black or white text on #f40c02?

Black. It scores 4.90:1 against #f40c02, versus 4.29:1 for white — AA at any size.

What is the complementary color of #f40c02?

#02EAF4 sits directly opposite on the wheel. Softer options are the split-complements #02F485 and #0271F4, which give the same contrast with far less vibration.

What colors go well with #f40c02?

For interface work: #FAF5F4 as the surface, #EDC2C0 for borders, #9B4E4B for secondary text, #00CCA2 as an accent and #7E0601 for hover and pressed states. For a palette, the analogous pair #F40271 and #F48502 stays calm, while #02EAF4 is the loudest partner.

What is #f40c02 in CMYK for printing?

cmyk(0%, 95%, 99%, 4%). 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 #f40c02 warm or cool?

Warm — it scores 15 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F43902; nudged cooler, #F60050.

Work with #f40c02 in the Color Lab