Skip to content

#ec7a21

a balanced, electric orange · warm · closest name: Chocolate

RGB
236, 122, 33
HSL
26°, 84%, 53%
CMYK
0, 48, 86, 8
Luminance
0.3186

At a glance

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

Hex
#ec7a21
Hue
26°
orange
Saturation
84%
electric
Lightness
53%
balanced
Brightness
93%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3186
WCAG relative
Temperature
Warm
2/100 cool
Color family
Orange
Tone
Electric
Best ink
Black
7.37:1
Closest name
Chocolate
ΔE2000 6.7
Where it sits
Hue26° of 360°
Saturation84%
Lightness53%
Temperature
Warm ← → Cool2% 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#ec7a21
RGBrgb(236, 122, 33)
HSLhsl(26, 84%, 53%)
CMYKcmyk(0%, 48%, 86%, 8%)
LABlab(63.2 38.8 63.2)
LCHlch(63.2 74.2 58.4)
OKLCHoklch(0.698 0.168 52.1)
Decimal15497761
Display P3color(display-p3 0.925 0.478 0.129)

Copy-ready code

/* CSS */
color: #ec7a21;
background-color: #ec7a21;
/* Tailwind (arbitrary) */
class="text-[#ec7a21] bg-[#ec7a21]"
/* SCSS */
$brand: #ec7a21;
/* SwiftUI */
Color(red: 0.925, green: 0.478, blue: 0.129)
/* Android */
Color.parseColor("#ec7a21")
/* Flutter */
Color(0xFFEC7A21)
/* Python / OpenCV (BGR) */
(33, 122, 236)

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 #ec7a21 · 7.37:1
Use #000000AAA at every size.
Aa
White text · 2.85:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.37:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ec7a21 as text scores 2.85:1 on white and 7.37:1 on black.

Accessibility — WCAG contrast

Aa
#ec7a21 on white: 2.85:1
AA ✗ fail · AA-large · AAA
Aa
#ec7a21 on black: 7.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #9B890B
deuteranopia · #B7A31E
tritanopia · #FF606A

Color scale — 50 to 950

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

#FCF7F2
#FAEEE6
#F6DBC5
#F6C198
#F2A264
#ec7a21
#E16E13
#BC5B10
#96490D
#6D370E
#442309
Base = 500Lightest = 50 · #FCF7F2Darkest = 950 · #442309
:root {
  --brand-50: #FCF7F2;
  --brand-100: #FAEEE6;
  --brand-200: #F6DBC5;
  --brand-300: #F6C198;
  --brand-400: #F2A264;
  --brand-500: #ec7a21;
  --brand-600: #E16E13;
  --brand-700: #BC5B10;
  --brand-800: #96490D;
  --brand-900: #6D370E;
  --brand-950: #442309;
  --brand: #ec7a21;
  --brand-ink: #000000;
}

Colors that work with #ec7a21

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#FAF7F4
Tinted page background
Border#EDD3C0
Hairlines and dividers
Muted text#9B6E4B
Captions on the surface
Accent#0C9EC0
Second voice, not a rival
Dark variant#75390A
Hover, pressed, headers
Light variant#FDF1E8
Selected rows, tints
Dark surface#241B14
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 #ec7a21

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

Works well for
  • 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
  • Text of any size on white — fails WCAG AA
  • 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#2193EC
Analogous left#EC212D
Analogous right#ECDF21
Split-complement 1#21ECDF
Split-complement 2#212DEC
Triadic 1#21EC7A
Triadic 2#7A21EC
Tetradic#2DEC21

RGB percentages

Red92.5%
Green47.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta48.3%
Yellow86.0%
Key (black)7.5%

Color previews

#ec7a21 text on a black background

contrast 7.37:1

Card sample

#ec7a21 text on a white background

contrast 2.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 122, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 122, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ec7a21;
background: linear-gradient(135deg, #ec7a21, #D7EC21);

Monochromatic scale

Palettes built from #ec7a21

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.

#ec7a21 in the real world

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

Industries
E-commerceFood deliveryLogisticsCreator tools
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#ec7a21, answered

What color is #ec7a21?

#ec7a21 is a balanced electric orange, closest to Chocolate (ΔE2000 6.7). It sits at 26° on the hue wheel with 84% saturation and 53% lightness, which reads as warm.

What is the RGB value of #ec7a21?

rgb(236, 122, 33) — 236 red, 122 green and 33 blue out of 255, or 92.5% / 47.8% / 12.9% by channel.

Is #ec7a21 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3186 and perceived brightness is 63%, so black text on it reaches 7.37:1.

Should I use black or white text on #ec7a21?

Black. It scores 7.37:1 against #ec7a21, versus 2.85:1 for white — AAA at any size.

What is the complementary color of #ec7a21?

#2193EC sits directly opposite on the wheel. Softer options are the split-complements #21ECDF and #212DEC, which give the same contrast with far less vibration.

What colors go well with #ec7a21?

For interface work: #FAF7F4 as the surface, #EDD3C0 for borders, #9B6E4B for secondary text, #0C9EC0 as an accent and #75390A for hover and pressed states. For a palette, the analogous pair #EC212D and #ECDF21 stays calm, while #2193EC is the loudest partner.

What is #ec7a21 in CMYK for printing?

cmyk(0%, 48%, 86%, 8%). 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 #ec7a21 warm or cool?

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

Work with #ec7a21 in the Color Lab