Skip to content

#393d04

a deep, electric yellow · warm · closest name: Dark Olive Green

RGB
57, 61, 4
HSL
64°, 88%, 13%
CMYK
7, 0, 93, 76
Luminance
0.0422

At a glance

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

Hex
#393d04
Hue
64°
yellow
Saturation
88%
electric
Lightness
13%
deep
Brightness
24%
HSV value
Perceived
22%
weighted brightness
Luminance
0.0422
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Electric
Best ink
White
11.39:1
Closest name
Dark Olive Green
ΔE2000 15.6
Where it sits
Hue64° of 360°
Saturation88%
Lightness13%
Temperature
Warm ← → Cool28% 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#393d04
RGBrgb(57, 61, 4)
HSLhsl(64, 88%, 13%)
CMYKcmyk(7%, 0%, 93%, 76%)
LABlab(24.4 -9.6 31.3)
LCHlch(24.4 32.7 107.1)
OKLCHoklch(0.345 0.074 113.9)
Decimal3751172
Display P3color(display-p3 0.224 0.239 0.016)

Copy-ready code

/* CSS */
color: #393d04;
background-color: #393d04;
/* Tailwind (arbitrary) */
class="text-[#393d04] bg-[#393d04]"
/* SCSS */
$brand: #393d04;
/* SwiftUI */
Color(red: 0.224, green: 0.239, blue: 0.016)
/* Android */
Color.parseColor("#393d04")
/* Flutter */
Color(0xFF393D04)
/* Python / OpenCV (BGR) */
(4, 61, 57)

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

Accessibility — WCAG contrast

Aa
#393d04 on white: 11.39:1
AA ✓ pass · AA-large · AAA
Aa
#393d04 on black: 1.84:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #423900
deuteranopia · #423A09
tritanopia · #3E3933

Color scale — 50 to 950

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

#FCFDF2
#F9FAE5
#F4F8C4
#F1F896
#EAF561
#E3F12C
#D7E60F
#B3BF0D
#8F990A
#686F0C
#393d04
Base = 950Lightest = 50 · #FCFDF2Darkest = 950 · #393d04
:root {
  --brand-50: #FCFDF2;
  --brand-100: #F9FAE5;
  --brand-200: #F4F8C4;
  --brand-300: #F1F896;
  --brand-400: #EAF561;
  --brand-500: #E3F12C;
  --brand-600: #D7E60F;
  --brand-700: #B3BF0D;
  --brand-800: #8F990A;
  --brand-900: #686F0C;
  --brand-950: #393d04;
  --brand: #393d04;
  --brand-ink: #ffffff;
}

Colors that work with #393d04

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#FAFAF4
Tinted page background
Border#E9EDC0
Hairlines and dividers
Muted text#959B4B
Captions on the surface
Accent#030D3E
Second voice, not a rival
Dark variant#707808
Hover, pressed, headers
Light variant#FCFDE7
Selected rows, tints
Dark surface#232414
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 #393d04

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#08043D
Analogous left#3D2404
Analogous right#1C3D04
Split-complement 1#041C3D
Split-complement 2#24043D
Triadic 1#04393D
Triadic 2#3D0439
Tetradic#043D24

RGB percentages

Red22.4%
Green23.9%
Blue1.6%

CMYK percentages

Cyan6.6%
Magenta0.0%
Yellow93.4%
Key (black)76.1%

Color previews

#393d04 text on a black background

contrast 1.84:1

Card sample

#393d04 text on a white background

contrast 11.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(57, 61, 4, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(57, 61, 4, 0.45);
Border & gradient
Gradient panel
border: 3px solid #393d04;
background: linear-gradient(135deg, #393d04, #133D04);

Monochromatic scale

Palettes built from #393d04

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.

#393d04 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.

#393d04, answered

What color is #393d04?

#393d04 is a deep electric yellow, closest to Dark Olive Green (ΔE2000 15.6). It sits at 64° on the hue wheel with 88% saturation and 13% lightness, which reads as warm.

What is the RGB value of #393d04?

rgb(57, 61, 4) — 57 red, 61 green and 4 blue out of 255, or 22.4% / 23.9% / 1.6% by channel.

Is #393d04 a light or a dark color?

It is a dark color. Relative luminance is 0.0422 and perceived brightness is 22%, so white text on it reaches 11.39:1.

Should I use black or white text on #393d04?

White. It scores 11.39:1 against #393d04, versus 1.84:1 for black — AAA at any size.

What is the complementary color of #393d04?

#08043D sits directly opposite on the wheel. Softer options are the split-complements #041C3D and #24043D, which give the same contrast with far less vibration.

What colors go well with #393d04?

For interface work: #FAFAF4 as the surface, #E9EDC0 for borders, #959B4B for secondary text, #030D3E as an accent and #707808 for hover and pressed states. For a palette, the analogous pair #3D2404 and #1C3D04 stays calm, while #08043D is the loudest partner.

What is #393d04 in CMYK for printing?

cmyk(7%, 0%, 93%, 76%). 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 #393d04 warm or cool?

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

Work with #393d04 in the Color Lab