Skip to content

#664c01

a deep, electric yellow · warm · closest name: Saddle Brown

RGB
102, 76, 1
HSL
45°, 98%, 20%
CMYK
0, 26, 99, 60
Luminance
0.0800

At a glance

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

Hex
#664c01
Hue
45°
yellow
Saturation
98%
electric
Lightness
20%
deep
Brightness
40%
HSV value
Perceived
32%
weighted brightness
Luminance
0.0800
WCAG relative
Temperature
Warm
12/100 cool
Color family
Yellow
Tone
Electric
Best ink
White
8.08:1
Closest name
Saddle Brown
ΔE2000 15.6
Where it sits
Hue45° of 360°
Saturation98%
Lightness20%
Temperature
Warm ← → Cool12% 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#664c01
RGBrgb(102, 76, 1)
HSLhsl(45, 98%, 20%)
CMYKcmyk(0%, 26%, 99%, 60%)
LABlab(34.0 4.3 42.3)
LCHlch(34.0 42.5 84.1)
OKLCHoklch(0.432 0.088 85.8)
Decimal6704129
Display P3color(display-p3 0.400 0.298 0.004)

Copy-ready code

/* CSS */
color: #664c01;
background-color: #664c01;
/* Tailwind (arbitrary) */
class="text-[#664c01] bg-[#664c01]"
/* SCSS */
$brand: #664c01;
/* SwiftUI */
Color(red: 0.400, green: 0.298, blue: 0.004)
/* Android */
Color.parseColor("#664c01")
/* Flutter */
Color(0xFF664C01)
/* Python / OpenCV (BGR) */
(1, 76, 102)

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#ffffff on #664c01 · 8.08:1
Use #ffffffAAA at every size.
Aa
White text · 8.08:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.60:1
AA fail · AA large fail · AAA fail
Reading the other direction: #664c01 as text scores 8.08:1 on white and 2.60:1 on black.

Accessibility — WCAG contrast

Aa
#664c01 on white: 8.08:1
AA ✓ pass · AA-large · AAA
Aa
#664c01 on black: 2.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #574C00
deuteranopia · #5E5306
tritanopia · #704340

Color scale — 50 to 950

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

#FDFAF1
#FCF6E3
#FBECC1
#FEE290
#FDD358
#FDC421
#F2B502
#CA9702
#A27902
#664c01
#493704
Base = 900Lightest = 50 · #FDFAF1Darkest = 950 · #493704
:root {
  --brand-50: #FDFAF1;
  --brand-100: #FCF6E3;
  --brand-200: #FBECC1;
  --brand-300: #FEE290;
  --brand-400: #FDD358;
  --brand-500: #FDC421;
  --brand-600: #F2B502;
  --brand-700: #CA9702;
  --brand-800: #A27902;
  --brand-900: #664c01;
  --brand-950: #493704;
  --brand: #664c01;
  --brand-ink: #ffffff;
}

Colors that work with #664c01

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

Text on it#ffffff
White wins here
Surface#FAF9F4
Tinted page background
Border#EDE1C0
Hairlines and dividers
Muted text#9B864B
Captions on the surface
Accent#003467
Second voice, not a rival
Dark variant#7E5E01
Hover, pressed, headers
Light variant#FFF8E6
Selected rows, tints
Dark surface#242014
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 #664c01

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

Works well for
  • 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
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • 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#011B66
Analogous left#661A01
Analogous right#4D6601
Split-complement 1#014D66
Split-complement 2#1A0166
Triadic 1#01664C
Triadic 2#4C0166
Tetradic#01661A

RGB percentages

Red40.0%
Green29.8%
Blue0.4%

CMYK percentages

Cyan0.0%
Magenta25.5%
Yellow99.0%
Key (black)60.0%

Color previews

#664c01 text on a black background

contrast 2.60:1

Card sample

#664c01 text on a white background

contrast 8.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(102, 76, 1, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(102, 76, 1, 0.45);
Border & gradient
Gradient panel
border: 3px solid #664c01;
background: linear-gradient(135deg, #664c01, #3D6601);

Monochromatic scale

Palettes built from #664c01

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.

#664c01 in the real world

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

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#664c01, answered

What color is #664c01?

#664c01 is a deep electric yellow, closest to Saddle Brown (ΔE2000 15.6). It sits at 45° on the hue wheel with 98% saturation and 20% lightness, which reads as warm.

What is the RGB value of #664c01?

rgb(102, 76, 1) — 102 red, 76 green and 1 blue out of 255, or 40% / 29.8% / 0.4% by channel.

Is #664c01 a light or a dark color?

It is a dark color. Relative luminance is 0.0800 and perceived brightness is 32%, so white text on it reaches 8.08:1.

Should I use black or white text on #664c01?

White. It scores 8.08:1 against #664c01, versus 2.60:1 for black — AAA at any size.

What is the complementary color of #664c01?

#011B66 sits directly opposite on the wheel. Softer options are the split-complements #014D66 and #1A0166, which give the same contrast with far less vibration.

What colors go well with #664c01?

For interface work: #FAF9F4 as the surface, #EDE1C0 for borders, #9B864B for secondary text, #003467 as an accent and #7E5E01 for hover and pressed states. For a palette, the analogous pair #661A01 and #4D6601 stays calm, while #011B66 is the loudest partner.

What is #664c01 in CMYK for printing?

cmyk(0%, 26%, 99%, 60%). 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 #664c01 warm or cool?

Warm — it scores 12 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #663601; nudged cooler, #5C6700.

Work with #664c01 in the Color Lab