Skip to content

#ffab3b

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

RGB
255, 171, 59
HSL
34°, 100%, 62%
CMYK
0, 33, 77, 0
Luminance
0.5070

Every format

HEX#ffab3b
RGBrgb(255, 171, 59)
HSLhsl(34, 100%, 62%)
CMYKcmyk(0%, 33%, 77%, 0%)
LABlab(76.5 21.9 66.5)
LCHlch(76.5 70.0 71.7)
OKLCHoklch(0.805 0.155 69.2)

Copy-ready code

/* CSS */
color: #ffab3b;
background-color: #ffab3b;
/* Tailwind (arbitrary) */
class="text-[#ffab3b] bg-[#ffab3b]"
/* SCSS */
$brand: #ffab3b;
/* SwiftUI */
Color(red: 1.000, green: 0.671, blue: 0.231)
/* Android */
Color.parseColor("#ffab3b")

Accessibility — WCAG contrast

Aa
#ffab3b on white: 1.89:1
AA ✗ fail · AA-large · AAA
Aa
#ffab3b on black: 11.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green67.1%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta32.9%
Yellow76.9%
Key (black)0.0%

Color previews

#ffab3b text on a black background

contrast 11.14:1

Card sample

#ffab3b text on a white background

contrast 1.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffab3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffab3b in the Color Lab