Skip to content

#ff9d21

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

RGB
255, 157, 33
HSL
34°, 100%, 57%
CMYK
0, 38, 87, 0
Luminance
0.4548

At a glance

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

Hex
#ff9d21
Hue
34°
orange
Saturation
100%
electric
Lightness
57%
balanced
Brightness
100%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4548
WCAG relative
Temperature
Warm
3/100 cool
Color family
Orange
Tone
Electric
Best ink
Black
10.10:1
Closest name
Orange
ΔE2000 4.2
Where it sits
Hue34° of 360°
Saturation100%
Lightness57%
Temperature
Warm ← → Cool3% 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#ff9d21
RGBrgb(255, 157, 33)
HSLhsl(34, 100%, 57%)
CMYKcmyk(0%, 38%, 87%, 0%)
LABlab(73.2 28.5 72.2)
LCHlch(73.2 77.6 68.5)
OKLCHoklch(0.779 0.167 64.7)
Decimal16751905
Display P3color(display-p3 1.000 0.616 0.129)

Copy-ready code

/* CSS */
color: #ff9d21;
background-color: #ff9d21;
/* Tailwind (arbitrary) */
class="text-[#ff9d21] bg-[#ff9d21]"
/* SCSS */
$brand: #ff9d21;
/* SwiftUI */
Color(red: 1.000, green: 0.616, blue: 0.129)
/* Android */
Color.parseColor("#ff9d21")
/* Flutter */
Color(0xFFFF9D21)
/* Python / OpenCV (BGR) */
(33, 157, 255)

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

Accessibility — WCAG contrast

Aa
#ff9d21 on white: 2.08:1
AA ✗ fail · AA-large · AAA
Aa
#ff9d21 on black: 10.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #BCA600
deuteranopia · #D3BD24
tritanopia · #FF8687

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ff9d21 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.

#FEF8F1
#FCF1E3
#FCE1C0
#FFCD8F
#FFB557
#ff9d21
#F58900
#CC7200
#A35B00
#764405
#492A03
Base = 500Lightest = 50 · #FEF8F1Darkest = 950 · #492A03
:root {
  --brand-50: #FEF8F1;
  --brand-100: #FCF1E3;
  --brand-200: #FCE1C0;
  --brand-300: #FFCD8F;
  --brand-400: #FFB557;
  --brand-500: #ff9d21;
  --brand-600: #F58900;
  --brand-700: #CC7200;
  --brand-800: #A35B00;
  --brand-900: #764405;
  --brand-950: #492A03;
  --brand: #ff9d21;
  --brand-ink: #000000;
}

Colors that work with #ff9d21

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#FAF8F4
Tinted page background
Border#EDD9C0
Hairlines and dividers
Muted text#9B774B
Captions on the surface
Accent#008DCC
Second voice, not a rival
Dark variant#804700
Hover, pressed, headers
Light variant#FFF4E5
Selected rows, tints
Dark surface#241D14
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 #ff9d21

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#2183FF
Analogous left#FF2E21
Analogous right#F2FF21
Split-complement 1#21F2FF
Split-complement 2#2E21FF
Triadic 1#21FF9D
Triadic 2#9D21FF
Tetradic#21FF2E

RGB percentages

Red100.0%
Green61.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta38.4%
Yellow87.1%
Key (black)0.0%

Color previews

#ff9d21 text on a black background

contrast 10.10:1

Card sample

#ff9d21 text on a white background

contrast 2.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff9d21

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.

#ff9d21 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.

#ff9d21, answered

What color is #ff9d21?

#ff9d21 is a balanced electric orange, closest to Orange (ΔE2000 4.2). It sits at 34° on the hue wheel with 100% saturation and 57% lightness, which reads as warm.

What is the RGB value of #ff9d21?

rgb(255, 157, 33) — 255 red, 157 green and 33 blue out of 255, or 100% / 61.6% / 12.9% by channel.

Is #ff9d21 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4548 and perceived brightness is 72%, so black text on it reaches 10.10:1.

Should I use black or white text on #ff9d21?

Black. It scores 10.10:1 against #ff9d21, versus 2.08:1 for white — AAA at any size.

What is the complementary color of #ff9d21?

#2183FF sits directly opposite on the wheel. Softer options are the split-complements #21F2FF and #2E21FF, which give the same contrast with far less vibration.

What colors go well with #ff9d21?

For interface work: #FAF8F4 as the surface, #EDD9C0 for borders, #9B774B for secondary text, #008DCC as an accent and #804700 for hover and pressed states. For a palette, the analogous pair #FF2E21 and #F2FF21 stays calm, while #2183FF is the loudest partner.

What is #ff9d21 in CMYK for printing?

cmyk(0%, 38%, 87%, 0%). 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 #ff9d21 warm or cool?

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

Work with #ff9d21 in the Color Lab